Safe Haskell | Safe-Infered |
---|
The Haskell→Javascript compiler.
- compile :: CompilesTo from to => from -> IO (Either CompileError to)
- compileViaStr :: (Show from, Show to, CompilesTo from to) => (from -> Compile to) -> String -> IO (Either CompileError String)
- compileModule :: Module -> Compile [JsStmt]
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.