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

Safe HaskellSafe-Infered

Language.Fay.Compiler

Synopsis

Documentation

compileFromTo :: CompileConfig -> Bool -> FilePath -> FilePath -> IO ()Source

Compile file program to…

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.

toJsName :: String -> StringSource

Convert a Haskell filename to a JS filename.