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

Safe HaskellNone
LanguageHaskell98

Fay.Config

Description

Configuring the compiler

Synopsis

Documentation

data Config Source #

Configuration of the compiler. The fields with a leading underscore

Instances

Show Config Source # 
Default Config Source #

Default configuration.

Methods

def :: Config #

configDirectoryIncludes :: Config -> [(Maybe String, FilePath)] Source #

Reading _configDirectoryIncludes is safe to do.

configDirectoryIncludePaths :: Config -> [FilePath] Source #

Get all include directories without the package mapping.

nonPackageConfigDirectoryIncludePaths :: Config -> [FilePath] Source #

Get all include directories not included through packages.

addConfigDirectoryInclude :: Maybe String -> FilePath -> Config -> Config Source #

Add a mapping from (maybe) a package to a source directory

addConfigDirectoryIncludes :: [(Maybe String, FilePath)] -> Config -> Config Source #

Add several include directories.

addConfigDirectoryIncludePaths :: [FilePath] -> Config -> Config Source #

Add several include directories without package references.

configPackages :: Config -> [String] Source #

Reading _configPackages is safe to do.

addConfigPackage :: String -> Config -> Config Source #

Add a package to compilation

addConfigPackages :: [String] -> Config -> Config Source #

Add several packages to compilation

shouldExportStrictWrapper :: ModuleName a -> Config -> Bool Source #

Should a strict wrapper be generated for this module?