Safe Haskell | None |
---|---|
Language | Haskell2010 |
Summoner configurations.
- data ConfigP (p :: Phase) = Config {
- cOwner :: p :- Text
- cFullName :: p :- Text
- cEmail :: p :- Text
- cLicense :: p :- License
- cGhcVer :: p :- [GhcVer]
- cGitHub :: Decision
- cTravis :: Decision
- cAppVey :: Decision
- cPrivate :: Decision
- cScript :: Decision
- cLib :: Decision
- cExe :: Decision
- cTest :: Decision
- cBench :: Decision
- cPrelude :: Last CustomPrelude
- cExtensions :: [Text]
- type PartialConfig = ConfigP Partial
- type Config = ConfigP Final
- defaultConfig :: PartialConfig
- finalise :: PartialConfig -> Validation [Text] Config
- loadFileConfig :: MonadIO m => FilePath -> m PartialConfig
Documentation
data ConfigP (p :: Phase) Source #
Potentially incomplete configuration.
Config | |
|
Semigroup PartialConfig Source # | |
Monoid PartialConfig Source # | |
Generic (ConfigP p) Source # | |
(GSemigroup ((:-) p Text), GSemigroup ((:-) p License), GSemigroup ((:-) p [GhcVer])) => GSemigroup (ConfigP p) Source # | |
(GMonoid ((:-) p Text), GMonoid ((:-) p License), GMonoid ((:-) p [GhcVer])) => GMonoid (ConfigP p) Source # | |
type Rep (ConfigP p) Source # | |
type PartialConfig = ConfigP Partial Source #
Incomplete configurations.
defaultConfig :: PartialConfig Source #
Default Config
configurations.
finalise :: PartialConfig -> Validation [Text] Config Source #
Make sure that all the required configurations options were specified.
loadFileConfig :: MonadIO m => FilePath -> m PartialConfig Source #
Read configuration from the given file and return it in data type.