Portability | GHC |
---|---|
Stability | experimental |
Maintainer | hans@hanshoglund.se |
Safe Haskell | None |
Renders module descriptions as Haskell 2010 foreign declarations.
- data HaskellStyle = HaskellStyle {}
- stdHaskellStyle :: HaskellStyle
- printModuleHaskell :: Module -> String
- renderModuleHaskell :: Module -> HsModule
- printModuleHaskellStyle :: HaskellStyle -> Module -> String
- renderModuleHaskellStyle :: HaskellStyle -> Module -> HsModule
Styles
data HaskellStyle Source
Monoid HaskellStyle | Left-biased Monoid instance. |
Default HaskellStyle | Default instance using |
Semigroup HaskellStyle | Left-biased Semigroup instance. |
Rendering
printModuleHaskell :: Module -> StringSource
Print a module using the default style.
renderModuleHaskell :: Module -> HsModuleSource
Render a module using the default style.
Returns a Haskell file, represented as a syntax tree.
printModuleHaskellStyle :: HaskellStyle -> Module -> StringSource
Print a module using the specified style.
renderModuleHaskellStyle :: HaskellStyle -> Module -> HsModuleSource
Render a module using the specified style.
Returns a Haskell file, represented as a syntax tree.