fay-0.23.2.0: A compiler for Fay, a Haskell subset that compiles to JavaScript.

Safe HaskellNone
LanguageHaskell98

Fay.Compiler.Desugar

Description

Desugars a reasonable amount of syntax to reduce duplication in code generation.

Synopsis

Documentation

desugar :: (Data l, Typeable l) => l -> Module l -> IO (Either CompileError (Module l)) Source #

Top level, desugar a whole module possibly returning errors

desugar' :: (Data l, Typeable l) => String -> l -> Module l -> IO (Either CompileError (Module l)) Source #

Desugar with the option to specify a prefix for generated names. Useful if you want to provide valid haskell names that HSE can print.

desugarExpParen :: (Data l, Typeable l) => Module l -> Module l Source #

(a) => a for patterns