Portability | GHC |
---|---|
Stability | experimental |
Maintainer | hans@hanshoglund.se |
Safe Haskell | None |
Renders module descriptions as Common Lisp (CFFI) declarations.
- data LispStyle = LispStyle {
- cStyle :: CStyle
- package :: String
- prefixMangler :: [String] -> [String]
- safeOpaque :: Bool
- primBoolType :: Maybe PrimType
- stdLispStyle :: LispStyle
- printModuleLisp :: Module -> String
- renderModuleLisp :: Module -> [Lisp]
- printModuleLispStyle :: LispStyle -> Module -> String
- renderModuleLispStyle :: LispStyle -> Module -> [Lisp]
- convertName :: LispStyle -> Name -> String
- convertType :: LispStyle -> Type -> Lisp
Styles
LispStyle | |
|
Rendering
printModuleLisp :: Module -> StringSource
Print a module using the default style.
renderModuleLisp :: Module -> [Lisp]Source
Render a module using the default style.
Returns a Lisp file, represented as a sequence of S-expressions.
printModuleLispStyle :: LispStyle -> Module -> StringSource
Print a module using the specified style.
renderModuleLispStyle :: LispStyle -> Module -> [Lisp]Source
Render a module using the specified style.
Returns a Lisp file, represented as a sequence of S-expressions.
Names
convertName :: LispStyle -> Name -> StringSource
convertType :: LispStyle -> Type -> LispSource