Safe Haskell | Safe-Infered |
---|
- compileFromTo :: CompileConfig -> Bool -> FilePath -> FilePath -> IO ()
- compileFile :: CompileConfig -> Bool -> FilePath -> IO (Either CompileError String)
- compileProgram :: (Show from, Show to, CompilesTo from to) => CompileConfig -> Bool -> String -> (from -> Compile to) -> String -> IO (Either CompileError String)
- printExport :: Name -> String
- toJsName :: String -> String
Documentation
compileFromTo :: CompileConfig -> Bool -> FilePath -> FilePath -> IO ()Source
Compile file program to…
compileFile :: CompileConfig -> Bool -> FilePath -> IO (Either CompileError String)Source
compileProgram :: (Show from, Show to, CompilesTo from to) => CompileConfig -> Bool -> String -> (from -> Compile to) -> String -> IO (Either CompileError String)Source
Compile the given module to a runnable program.
printExport :: Name -> StringSource
Print an this.x = x; export out.