sifflet-lib-1.0: Library of modules shared by sifflet and its tests and its exporters.Source codeContentsIndex
Sifflet.Foreign.ToHaskell
Description
Exports Sifflet to Haskell Requires haskell-src package.
Synopsis
data HaskellOptions = HaskellOptions
class HasParens a where
simplifyParens :: a -> a
defaultHaskellOptions :: HaskellOptions
exportHaskell :: HaskellOptions -> Exporter
functionsToHsModule :: String -> Functions -> HsModule
functionToHsDecl :: Function -> HsDecl
exprToHsExp :: Expr -> HsExp
valueToHsExp :: Value -> HsExp
prettyModule :: String -> IO ()
Documentation
data HaskellOptions Source
User configurable options for export to Haskell. Currently just a place-holder.
Constructors
HaskellOptions
show/hide Instances
class HasParens a whereSource
Simplifying parentheses This belongs elsewhere, since non-Haskelly things can also be instances.
Methods
simplifyParens :: a -> aSource
show/hide Instances
defaultHaskellOptions :: HaskellOptionsSource
The default options for export to Haskell.
exportHaskell :: HaskellOptions -> ExporterSource
Export functions with specified options to a file Work needed: add a declaration import Sifflet.Data.Number.
functionsToHsModule :: String -> Functions -> HsModuleSource

A clause of a function binding hsMatch :: ??

Converting Sifflet to Haskell syntax tree

Create a module from a module name and Functions.

functionToHsDecl :: Function -> HsDeclSource
Create a declaration from a Function. Needs work: infer and declare the type of the function.
exprToHsExp :: Expr -> HsExpSource
valueToHsExp :: Value -> HsExpSource
prettyModule :: String -> IO ()Source
Produced by Haddock version 2.6.1