Copyright | (C) 2017 Jiri Marsicek |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Jiri Marsicek <jiri.marsicek@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
This module defines portage configuration DSL language.
- newtype Arch = Arch {}
- amd64 :: Arch
- x86 :: Arch
- class ShowText a where
- type Name = Text
- newtype Atom = Atom Name
- data Use = Use Bool Text
- newtype Keyword = Keyword Text
- newtype License = License Text
- data PackageConfiguration = PackageConfiguration {}
- keywordsL :: Lens' PackageConfiguration [Keyword]
- keywords :: MonadState PackageConfiguration m => [Keyword] -> m ()
- unstable :: PortageT PackageConfiguration ()
- licencesL :: Lens' PackageConfiguration [License]
- license :: MonadState PackageConfiguration m => License -> m ()
- data Package = Package {}
- data SetConfiguration = SetConfiguration {
- _setUseflags :: [Use]
- _setPackages :: [Package]
- _setDependencies :: [Package]
- setPackagesL :: Lens' SetConfiguration [Package]
- pkgs :: [ReaderT PortagerConfiguration Identity Package] -> PortageT SetConfiguration ()
- data PackageSet = PackageSet {}
- class WithUseflags a where
- class WithDependencies a where
- class Monoid (Configuration w) => With w where
- type Configuration w
- data PortagerConfiguration = PortagerConfiguration {}
Documentation
An Architecture Keyword
Portage Atom
Portage Keyword
Portage License
keywords :: MonadState PackageConfiguration m => [Keyword] -> m () Source #
Appends Keyword
s to a PackageConfiguration
.
unstable :: PortageT PackageConfiguration () Source #
Appends unstable keyword for globally configured architecture to a PackageConfiguration
.
license :: MonadState PackageConfiguration m => License -> m () Source #
Appends License
s to a PackageConfiguration
data SetConfiguration Source #
SetConfiguration | |
|
pkgs :: [ReaderT PortagerConfiguration Identity Package] -> PortageT SetConfiguration () Source #
Appends Package
s to a SetConfiguration
as explicit dependencies (listed in set file)
data PackageSet Source #
class WithUseflags a where Source #
class WithDependencies a where Source #
class Monoid (Configuration w) => With w where Source #
A class for modifications to an encapsulated configuration of w
type Configuration w Source #
configurationL :: Lens' w (Configuration w) Source #
with :: w -> PortageT (Configuration w) () -> ReaderT PortagerConfiguration Identity w Source #
data PortagerConfiguration Source #
Global configuration