purescript-0.5.1: PureScript Programming Language Compiler
Language.PureScript.CodeGen.Monad
Description
Code generation monad
This monad provides a supply of fresh names which can be used to create variables.
Synopsis
newtype Gen a Source
Code generation monad data type
Constructors
Fields
Instances
runGen :: [String] -> Gen a -> aSource
Run a computation in the code generation monad
fresh :: Gen StringSource
Generate a fresh name