Safe Haskell | None |
---|---|
Language | Haskell2010 |
HIE.Bios.Config.YAML
Description
Datatypes for parsing hie.yaml
files
Documentation
data CradleConfigYAML a Source #
Constructors
CradleConfigYAML | |
Fields
|
Instances
data CradleComponent a Source #
Constructors
Multi [MultiSubComponent a] | |
Cabal CabalConfig | |
Stack StackConfig | |
Direct DirectConfig | |
Bios BiosConfig | |
None NoneConfig | |
Other (OtherConfig a) |
Instances
FromJSON a => FromJSON (CradleComponent a) Source # | |||||
Defined in HIE.Bios.Config.YAML Methods parseJSON :: Value -> Parser (CradleComponent a) # parseJSONList :: Value -> Parser [CradleComponent a] # omittedField :: Maybe (CradleComponent a) # | |||||
Generic (CradleComponent a) Source # | |||||
Defined in HIE.Bios.Config.YAML Associated Types
Methods from :: CradleComponent a -> Rep (CradleComponent a) x # to :: Rep (CradleComponent a) x -> CradleComponent a # | |||||
type Rep (CradleComponent a) Source # | |||||
Defined in HIE.Bios.Config.YAML type Rep (CradleComponent a) = D1 ('MetaData "CradleComponent" "HIE.Bios.Config.YAML" "hie-bios-0.15.0-8BqlfM5vLK9IgEu7regd11" 'False) ((C1 ('MetaCons "Multi" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [MultiSubComponent a])) :+: (C1 ('MetaCons "Cabal" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CabalConfig)) :+: C1 ('MetaCons "Stack" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StackConfig)))) :+: ((C1 ('MetaCons "Direct" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DirectConfig)) :+: C1 ('MetaCons "Bios" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BiosConfig))) :+: (C1 ('MetaCons "None" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NoneConfig)) :+: C1 ('MetaCons "Other" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (OtherConfig a)))))) |
data MultiSubComponent a Source #
Constructors
MultiSubComponent | |
Fields
|
Instances
FromJSON a => FromJSON (MultiSubComponent a) Source # | |||||
Defined in HIE.Bios.Config.YAML Methods parseJSON :: Value -> Parser (MultiSubComponent a) # parseJSONList :: Value -> Parser [MultiSubComponent a] # omittedField :: Maybe (MultiSubComponent a) # | |||||
Generic (MultiSubComponent a) Source # | |||||
Defined in HIE.Bios.Config.YAML Associated Types
Methods from :: MultiSubComponent a -> Rep (MultiSubComponent a) x # to :: Rep (MultiSubComponent a) x -> MultiSubComponent a # | |||||
type Rep (MultiSubComponent a) Source # | |||||
Defined in HIE.Bios.Config.YAML type Rep (MultiSubComponent a) = D1 ('MetaData "MultiSubComponent" "HIE.Bios.Config.YAML" "hie-bios-0.15.0-8BqlfM5vLK9IgEu7regd11" 'False) (C1 ('MetaCons "MultiSubComponent" 'PrefixI 'True) (S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: S1 ('MetaSel ('Just "config") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (CradleConfigYAML a)))) |
data CabalConfig Source #
Constructors
CabalConfig | |
Instances
FromJSON CabalConfig Source # | |
Defined in HIE.Bios.Config.YAML |
data CabalComponent Source #
Constructors
CabalComponent | |
Fields |
Instances
FromJSON CabalComponent Source # | |
Defined in HIE.Bios.Config.YAML Methods parseJSON :: Value -> Parser CabalComponent # parseJSONList :: Value -> Parser [CabalComponent] # |
data StackConfig Source #
Constructors
StackConfig | |
Instances
FromJSON StackConfig Source # | |
Defined in HIE.Bios.Config.YAML |
data StackComponent Source #
Constructors
StackComponent | |
Fields |
Instances
FromJSON StackComponent Source # | |
Defined in HIE.Bios.Config.YAML Methods parseJSON :: Value -> Parser StackComponent # parseJSONList :: Value -> Parser [StackComponent] # |
data DirectConfig Source #
Constructors
DirectConfig | |
Instances
FromJSON DirectConfig Source # | |||||
Defined in HIE.Bios.Config.YAML | |||||
Generic DirectConfig Source # | |||||
Defined in HIE.Bios.Config.YAML Associated Types
| |||||
type Rep DirectConfig Source # | |||||
Defined in HIE.Bios.Config.YAML type Rep DirectConfig = D1 ('MetaData "DirectConfig" "HIE.Bios.Config.YAML" "hie-bios-0.15.0-8BqlfM5vLK9IgEu7regd11" 'False) (C1 ('MetaCons "DirectConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "arguments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [String]))) |
data BiosConfig Source #
Constructors
BiosConfig | |
Instances
FromJSON BiosConfig Source # | |
Defined in HIE.Bios.Config.YAML |
data NoneConfig Source #
Constructors
NoneConfig |
Instances
FromJSON NoneConfig Source # | |
Defined in HIE.Bios.Config.YAML |
data OtherConfig a Source #
Constructors
OtherConfig | |
Fields
|
Instances
FromJSON a => FromJSON (OtherConfig a) Source # | |
Defined in HIE.Bios.Config.YAML Methods parseJSON :: Value -> Parser (OtherConfig a) # parseJSONList :: Value -> Parser [OtherConfig a] # omittedField :: Maybe (OtherConfig a) # |
data OneOrManyComponents component Source #
Constructors
SingleComponent String | |
ManyComponents [component] | |
NoComponent |
Instances
FromJSON component => FromJSON (OneOrManyComponents component) Source # | |
Defined in HIE.Bios.Config.YAML Methods parseJSON :: Value -> Parser (OneOrManyComponents component) # parseJSONList :: Value -> Parser [OneOrManyComponents component] # omittedField :: Maybe (OneOrManyComponents component) # |