Safe Haskell | Safe-Inferred |
---|
Control.Compilation.String
Description
Compilation Monad and combinators for quickly assembling simple compilers.
Control/Compilation/String.hs
A generic compilation monad and combinators for quickly assembling simple compilers that emit an ASCII string representation of the target language (well-suited for direct syntax translators).
- indent :: Compilation String ()
- unindent :: Compilation String ()
- space :: Compilation String ()
- spaces :: Int -> Compilation String ()
- newline :: Compilation String ()
- newlines :: Int -> Compilation String ()
- string :: String -> Compilation String ()
- raw :: String -> Compilation String ()
Documentation
indent :: Compilation String ()Source
Combinators and functions for compiling directly into a raw ASCII string.
unindent :: Compilation String ()Source
space :: Compilation String ()Source
spaces :: Int -> Compilation String ()Source
newline :: Compilation String ()Source
newlines :: Int -> Compilation String ()Source
string :: String -> Compilation String ()Source
raw :: String -> Compilation String ()Source