Safe Haskell | Ignore |
---|---|
Language | Haskell2010 |
Synopsis
- maybeRead :: Read a => String -> Maybe a
- maybeReadFuzzy :: Read a => String -> Maybe a
- type RawSettings = Map String String
- getTargetArchOS :: FilePath -> RawSettings -> Either String ArchOS
- getRawSetting :: FilePath -> RawSettings -> String -> Either String String
- getRawFilePathSetting :: FilePath -> FilePath -> RawSettings -> String -> Either String String
- getRawBooleanSetting :: FilePath -> RawSettings -> String -> Either String Bool
- readRawSetting :: (Show a, Read a) => FilePath -> RawSettings -> String -> Either String a
Documentation
:: FilePath | Settings filepath (for error messages) |
-> RawSettings | Raw settings file contents |
-> Either String ArchOS |
Read target Arch/OS from the settings
getRawSetting :: FilePath -> RawSettings -> String -> Either String String Source #
getRawFilePathSetting :: FilePath -> FilePath -> RawSettings -> String -> Either String String Source #
getRawBooleanSetting :: FilePath -> RawSettings -> String -> Either String Bool Source #
readRawSetting :: (Show a, Read a) => FilePath -> RawSettings -> String -> Either String a Source #