Safe Haskell | None |
---|
Main library entry point.
- module Fay.Types
- compileFile :: CompileConfig -> FilePath -> IO (Either CompileError (String, [Mapping]))
- compileFileWithState :: CompileConfig -> FilePath -> IO (Either CompileError (String, [Mapping], CompileState))
- compileFromTo :: CompileConfig -> FilePath -> Maybe FilePath -> IO ()
- compileFromToAndGenerateHtml :: CompileConfig -> FilePath -> FilePath -> IO (Either CompileError (String, [Mapping]))
- toJsName :: String -> String
- showCompileError :: CompileError -> String
- getConfigRuntime :: CompileConfig -> IO String
- getRuntime :: IO String
Documentation
module Fay.Types
compileFile :: CompileConfig -> FilePath -> IO (Either CompileError (String, [Mapping]))Source
Compile the given file.
compileFileWithState :: CompileConfig -> FilePath -> IO (Either CompileError (String, [Mapping], CompileState))Source
Compile a file returning the state.
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, [Mapping]))Source
Compile the given file and write to the output, also generate any HTML.
showCompileError :: CompileError -> StringSource
Print a compile error for human consumption.
getConfigRuntime :: CompileConfig -> IO StringSource
Get the JS runtime source. This will return the user supplied runtime if it exists.
Get the default JS runtime source.