GHC.Settings

ghc-boot-8.10.3: Shared functionality between GHC and its boot libraries

Safe Haskell | Safe-Inferred
Language | Haskell2010

GHC.Settings

Synopsis

- getTargetPlatform :: FilePath -> RawSettings -> Either String Platform
- type RawSettings = Map String String
- getSetting0 :: FilePath -> RawSettings -> String -> Either String String
- getFilePathSetting0 :: FilePath -> FilePath -> RawSettings -> String -> Either String String
- getBooleanSetting0 :: FilePath -> RawSettings -> String -> Either String Bool
- readSetting0 :: (Show a, Read a) => FilePath -> RawSettings -> String -> Either String a
- maybeRead :: Read a => String -> Maybe a
- maybeReadFuzzy :: Read a => String -> Maybe a

# Documentation

getTargetPlatform :: FilePath -> RawSettings -> Either String Platform Source #

type RawSettings = Map String String Source #

getSetting0 :: FilePath -> RawSettings -> String -> Either String String Source #

See Note [Settings file] for "0" suffix

getFilePathSetting0 :: FilePath -> FilePath -> RawSettings -> String -> Either String String Source #

See Note [Settings file] for "0" suffix

getBooleanSetting0 :: FilePath -> RawSettings -> String -> Either String Bool Source #

See Note [Settings file] for "0" suffix

readSetting0 :: (Show a, Read a) => FilePath -> RawSettings -> String -> Either String a Source #

See Note [Settings file] for "0" suffix

maybeRead :: Read a => String -> Maybe a Source #

maybeReadFuzzy :: Read a => String -> Maybe a Source #