modulo-1.9.1: Modular C code generator

PortabilityGHC
Stabilityexperimental
Maintainerhans@hanshoglund.se
Safe HaskellNone

Language.Modulo.Lisp

Contents

Description

Renders module descriptions as Common Lisp (CFFI) declarations.

Synopsis

Styles

data LispStyle Source

Constructors

LispStyle 

Fields

cStyle :: CStyle

For generating foreign declarations

package :: String

Package in which to generate definitions

prefixMangler :: [String] -> [String]

A mangler for prefixes.

safeOpaque :: Bool

If true, generate a wrapper class for each opaque type.

primBoolType :: Maybe PrimType

Type of primitive booleans (default Int).

Instances

Monoid LispStyle

Left-biased Monoid instance.

Default LispStyle

Default instance using stdStyle.

Semigroup LispStyle

Left-biased Semigroup instance.

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