| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
HIE.Bios.Config
Description
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"
Constructors
| Config | |
Fields | |
data CradleConfig Source #
Constructors
| CradleConfig | |
Fields
| |
Instances
| Eq CradleConfig Source # | |
Defined in HIE.Bios.Config | |
| Show CradleConfig Source # | |
Defined in HIE.Bios.Config Methods showsPrec :: Int -> CradleConfig -> ShowS # show :: CradleConfig -> String # showList :: [CradleConfig] -> ShowS # | |
| FromJSON CradleConfig Source # | |
Defined in HIE.Bios.Config | |
data CradleType Source #
Constructors
| Cabal | |
| CabalMulti [(FilePath, String)] | |
| Stack | |
| StackMulti [(FilePath, String)] | |
| Bios | |
Fields
| |
| Direct | |
| None | |
| Multi [(FilePath, CradleConfig)] | |
Instances
| Eq CradleType Source # | |
Defined in HIE.Bios.Config | |
| Show CradleType Source # | |
Defined in HIE.Bios.Config Methods showsPrec :: Int -> CradleType -> ShowS # show :: CradleType -> String # showList :: [CradleType] -> ShowS # | |
| FromJSON CradleType Source # | |
Defined in HIE.Bios.Config | |