Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Exports Sifflet to Haskell Requires haskell-src package.
Documentation
data HaskellOptions Source
User configurable options for export to Haskell. Currently these options are unused. The line width options should probably go somewhere else, maybe as PrettyOptions.
defaultHaskellOptions :: HaskellOptions Source
The default options for export to Haskell.
exportHaskell :: HaskellOptions -> Exporter Source
Export functions with specified options to a file
functionsToHsModule :: String -> Functions -> Module Source
Converting Sifflet to Haskell syntax tree
Create a module from a module name and Functions.
functionToHsDecl :: Function -> Decl Source
Create a declaration from a Function. Needs work: infer and declare the type of the function. Minimally parenthesized.
exprToHsExpr :: Expr -> Expr Source
Converts a Sifflet Expr to a fully parenthesized Haskell Expr