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

Safe HaskellSafe-Infered

Language.Fay

Description

The Haskell→Javascript compiler.

Synopsis

Documentation

compile :: CompilesTo from to => from -> IO (Either CompileError to)Source

Compile something that compiles to something else.

compileViaStr :: (Show from, Show to, CompilesTo from to) => (from -> Compile to) -> String -> IO (Either CompileError String)Source

Compile a Haskell source string to a JavaScript source string.

compileModule :: Module -> Compile [JsStmt]Source

Compile Haskell module.