Safe Haskell | None |
---|---|
Language | Haskell2010 |
Logic and datatypes for parsing hie.yaml
files.
Synopsis
- readConfig :: FilePath -> IO Config
- newtype Config = Config {}
- data CradleConfig = CradleConfig {}
- data CradleType
Documentation
readConfig :: FilePath -> IO Config Source #
Decode given file to a Config
value.
If the contents of the file is not a valid Config
,
an IOException
is thrown.
Configuration that can be used to load a Cradle
.
A configuration has roughly the following form:
cradle: cabal: component: "lib:hie-bios"
data CradleConfig Source #
CradleConfig | |
|
Instances
Eq CradleConfig Source # | |
Defined in HIE.Bios.Config (==) :: CradleConfig -> CradleConfig -> Bool # (/=) :: CradleConfig -> CradleConfig -> Bool # | |
Show CradleConfig Source # | |
Defined in HIE.Bios.Config showsPrec :: Int -> CradleConfig -> ShowS # show :: CradleConfig -> String # showList :: [CradleConfig] -> ShowS # | |
FromJSON CradleConfig Source # | |
Defined in HIE.Bios.Config parseJSON :: Value -> Parser CradleConfig # parseJSONList :: Value -> Parser [CradleConfig] # |
data CradleType Source #
Cabal | |
CabalMulti [(FilePath, String)] | |
Stack | |
StackMulti [(FilePath, String)] | |
Bios | |
| |
Direct | |
None | |
Multi [(FilePath, CradleConfig)] |
Instances
Eq CradleType Source # | |
Defined in HIE.Bios.Config (==) :: CradleType -> CradleType -> Bool # (/=) :: CradleType -> CradleType -> Bool # | |
Show CradleType Source # | |
Defined in HIE.Bios.Config showsPrec :: Int -> CradleType -> ShowS # show :: CradleType -> String # showList :: [CradleType] -> ShowS # | |
FromJSON CradleType Source # | |
Defined in HIE.Bios.Config parseJSON :: Value -> Parser CradleType # parseJSONList :: Value -> Parser [CradleType] # |