modulo-1.5: Modular C code generator

PortabilityGHC
Stabilityexperimental
Maintainerhans@hanshoglund.se
Safe HaskellNone

Language.Modulo.Haskell

Contents

Description

Renders module descriptions as Haskell 2010 foreign declarations.

Synopsis

Styles

data HaskellStyle Source

Constructors

HaskellStyle 

Fields

cStyle :: CStyle

For generating foreign declarations

Instances

Monoid HaskellStyle

Left-biased Monoid instance.

Default HaskellStyle

Default instance using stdStyle.

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.