Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > d4d89afd994d97d86f808e6225684a4f > files > 110

ghc-uniplate-devel-1.6-5.fc15.i686.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->
<title>Data/Generics/Uniplate/Operations.hs</title>
<link type='text/css' rel='stylesheet' href='hscolour.css' />
</head>
<body>
<pre><a name="line-1"></a><span class='hs-comment'>{-# LANGUAGE CPP, MultiParamTypeClasses #-}</span>
<a name="line-2"></a><span class='hs-comment'>{- |
<a name="line-3"></a>Definitions of 'Uniplate' and 'Biplate' classes, along with all the standard operations.
<a name="line-4"></a>
<a name="line-5"></a>Import this module directly only if you are defining new Uniplate operations, otherwise
<a name="line-6"></a>import one of "Data.Generics.Uniplate.Direct", "Data.Generics.Uniplate.Typeable" or
<a name="line-7"></a>"Data.Generics.Uniplate.Data".
<a name="line-8"></a>
<a name="line-9"></a>Most functions have an example of a possible use for the function.
<a name="line-10"></a>To illustate, I have used the @Expr@ type as below:
<a name="line-11"></a>
<a name="line-12"></a>&gt; data Expr = Val Int
<a name="line-13"></a>&gt;           | Neg Expr
<a name="line-14"></a>&gt;           | Add Expr Expr
<a name="line-15"></a>-}</span>
<a name="line-16"></a>
<a name="line-17"></a><span class='hs-keyword'>module</span> <span class='hs-conid'>Data</span><span class='hs-varop'>.</span><span class='hs-conid'>Generics</span><span class='hs-varop'>.</span><span class='hs-conid'>Uniplate</span><span class='hs-varop'>.</span><span class='hs-conid'>Operations</span> <span class='hs-keyword'>where</span>
<a name="line-18"></a>
<a name="line-19"></a><span class='hs-cpp'>#include "Internal/OperationsInc.hs"</span>
</pre></body>
</html>