Safe Haskell | None |
---|
- module Language.Fay.Types
- compileFile :: CompileConfig -> FilePath -> IO (Either CompileError String)
- compileFileWithState :: CompileConfig -> FilePath -> IO (Either CompileError (String, CompileState))
- compileFromTo :: CompileConfig -> FilePath -> Maybe FilePath -> IO ()
- compileFromToAndGenerateHtml :: CompileConfig -> FilePath -> FilePath -> IO (Either CompileError String)
- toJsName :: String -> String
- showCompileError :: CompileError -> String
Documentation
module Language.Fay.Types
compileFile :: CompileConfig -> FilePath -> IO (Either CompileError String)Source
Compile the given file.
compileFileWithState :: CompileConfig -> FilePath -> IO (Either CompileError (String, CompileState))Source
compileFromTo :: CompileConfig -> FilePath -> Maybe FilePath -> IO ()Source
Compile the given file and write the output to the given path, or if nothing given, stdout.
compileFromToAndGenerateHtml :: CompileConfig -> FilePath -> FilePath -> IO (Either CompileError String)Source
Compile the given file and write to the output, also generate any HTML.
showCompileError :: CompileError -> StringSource
Print a compile error for human consumption.