unicoder-0.4.1: Make writing in unicode easy.

Safe HaskellNone

Text.Unicoder

Synopsis

Documentation

unicodize :: Config -> Text -> TextSource

Perform the unicoder transformation on a Text value.

unicodizeStr :: Config -> String -> StringSource

Perform the unicoder transformation on a String value.

data Config Source

Aggregate all settings needed to unicodize.

locateConfigSource

Arguments

:: FilePath

the working directory

-> FilePath

the config path to resolve

-> IO FilePath

resolved, absolute path to the file

Determine the filesystem location of a config file path. If the path does not include a slash, then it is resolved using the unicoder built-in locations. If it does include a slash, then it is resolved relative to the passed working directory.

loadConfig :: FilePath -> IO (Maybe Config)Source

Parse the contents of the passed file as unicoder Config

parseConfig :: FilePath -> Text -> Maybe ConfigSource

Parse a config file, possibly failing.