haskell-src-exts-0.4.5: Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer

Portabilityportable
Stabilityexperimental
MaintainerNiklas Broberg, d00nibro@dtek.chalmers.se

Language.Haskell.Exts.Build

Contents

Description

 

Synopsis

Syntax building functions

app :: Exp -> Exp -> ExpSource

appFun :: Exp -> [Exp] -> ExpSource

pApp :: Name -> [Pat] -> PatSource

lamE :: SrcLoc -> [Pat] -> Exp -> ExpSource

letE :: [Decl] -> Exp -> ExpSource

caseE :: Exp -> [Alt] -> ExpSource

alt :: SrcLoc -> Pat -> Exp -> AltSource

altGW :: SrcLoc -> Pat -> [Stmt] -> Exp -> Binds -> AltSource

More advanced building

sfun :: SrcLoc -> Name -> [Name] -> Rhs -> Binds -> DeclSource

A function with a single match

simpleFun :: SrcLoc -> Name -> Name -> Exp -> DeclSource

A function with a single match, a single argument, no guards and no where declarations

patBind :: SrcLoc -> Pat -> Exp -> DeclSource

A pattern bind where the pattern is a variable, and where there are no guards and no 'where' clause.