Safe Haskell | None |
---|---|
Language | Haskell2010 |
Summoner configurations.
Synopsis
- data ConfigP (p :: Phase) = Config {
- cOwner :: p :- Text
- cFullName :: p :- Text
- cEmail :: p :- Text
- cLicense :: p :- LicenseName
- cGhcVer :: p :- [GhcVer]
- cCabal :: Decision
- cStack :: Decision
- cGitHub :: Decision
- cTravis :: Decision
- cAppVey :: Decision
- cPrivate :: Decision
- cLib :: Decision
- cExe :: Decision
- cTest :: Decision
- cBench :: Decision
- cPrelude :: Last CustomPrelude
- cExtensions :: [Text]
- cWarnings :: [Text]
- cStylish :: Last Source
- cContributing :: Last Source
- type PartialConfig = ConfigP Partial
- type Config = ConfigP Final
- configT :: TomlCodec PartialConfig
- defaultConfig :: PartialConfig
- finalise :: PartialConfig -> Validation [Text] Config
- loadFileConfig :: MonadIO m => FilePath -> m PartialConfig
Documentation
data ConfigP (p :: Phase) Source #
Potentially incomplete configuration.
Config | |
|
Instances
Semigroup PartialConfig Source # | |
Defined in Summoner.Config (<>) :: PartialConfig -> PartialConfig -> PartialConfig # sconcat :: NonEmpty PartialConfig -> PartialConfig # stimes :: Integral b => b -> PartialConfig -> PartialConfig # | |
Monoid PartialConfig Source # | |
Defined in Summoner.Config mempty :: PartialConfig # mappend :: PartialConfig -> PartialConfig -> PartialConfig # mconcat :: [PartialConfig] -> PartialConfig # | |
(Eq (p :- Text), Eq (p :- LicenseName), Eq (p :- [GhcVer])) => Eq (ConfigP p) Source # | |
(Show (p :- Text), Show (p :- LicenseName), Show (p :- [GhcVer])) => Show (ConfigP p) Source # | |
Generic (ConfigP p) Source # | |
(GSemigroup (p :- Text), GSemigroup (p :- LicenseName), GSemigroup (p :- [GhcVer])) => GSemigroup (ConfigP p) Source # | |
(GMonoid (p :- Text), GMonoid (p :- LicenseName), GMonoid (p :- [GhcVer])) => GMonoid (ConfigP p) Source # | |
type Rep (ConfigP p) Source # | |
Defined in Summoner.Config |
type PartialConfig = ConfigP Partial Source #
Incomplete configurations.
defaultConfig :: PartialConfig Source #
Default ConfigP
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.