purescript-0.4.19.1: PureScript Programming Language Compiler

Safe HaskellNone

Language.PureScript.CodeGen.Monad

Description

Code generation monad

This monad provides a supply of fresh names which can be used to create variables.

Synopsis

Documentation

newtype Gen a Source

Code generation monad data type

Constructors

Gen 

Fields

unGen :: State [String] a
 

runGen :: [String] -> Gen a -> aSource

Run a computation in the code generation monad

fresh :: Gen StringSource

Generate a fresh name