Safe Haskell | Safe-Infered |
---|
- class Writer a where
- class Reader a where
- compileFromTo :: CompileConfig -> FilePath -> FilePath -> IO ()
- compileReadWrite :: (Reader r, Writer w) => CompileConfig -> r -> w -> IO ()
- compileFile :: Reader r => CompileConfig -> r -> IO (Either CompileError String)
- compileProgram :: (Show from, Show to, CompilesTo from to) => CompileConfig -> String -> (from -> Compile to) -> String -> IO (Either CompileError String)
- printExport :: Name -> String
- toJsName :: String -> String
Documentation
A result of something the compiler writes.
Something to feed into the compiler.
compileFromTo :: CompileConfig -> FilePath -> FilePath -> IO ()Source
Compile file program to…
compileReadWrite :: (Reader r, Writer w) => CompileConfig -> r -> w -> IO ()Source
Compile readable/writable values.
compileFile :: Reader r => CompileConfig -> r -> IO (Either CompileError String)Source
Compile the given file.
compileProgram :: (Show from, Show to, CompilesTo from to) => CompileConfig -> 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.