Safe Haskell | None |
---|---|
Language | Haskell2010 |
Stackage.Types
Contents
Description
Shared types for various stackage packages.
- data SnapshotType
- type DocMap = Map Text PackageDocs
- data PackageDocs = PackageDocs {}
- data BuildPlan = BuildPlan {}
- data PackagePlan = PackagePlan {}
- data PackageConstraints = PackageConstraints {}
- data ParseFailedException = ParseFailedException TypeRep Text
- data TestState
- data SystemInfo = SystemInfo {}
- newtype Maintainer = Maintainer {
- unMaintainer :: Text
- newtype ExeName = ExeName {}
- data SimpleDesc = SimpleDesc {}
- data DepInfo = DepInfo {}
- data Component
- display :: Text a => a -> Text
- simpleParse :: (MonadThrow m, Text a, Typeable a) => Text -> m a
- unPackageName :: PackageName -> Text
- mkPackageName :: Text -> PackageName
- unFlagName :: FlagName -> Text
- mkFlagName :: Text -> FlagName
- intersectVersionRanges :: VersionRange -> VersionRange -> VersionRange
Types
data SnapshotType Source
type DocMap = Map Text PackageDocs Source
Package name is key
data PackageDocs Source
Instances
Constructors
BuildPlan | |
Fields
|
data PackagePlan Source
Constructors
PackagePlan | |
Fields
|
Instances
data PackageConstraints Source
Constructors
PackageConstraints | |
Fields
|
data ParseFailedException Source
Constructors
ParseFailedException TypeRep Text |
Constructors
ExpectSuccess | |
ExpectFailure | |
Don'tBuild | when the test suite will pull in things we don't want |
data SystemInfo Source
Constructors
SystemInfo | |
Fields
|
newtype Maintainer Source
Constructors
Maintainer | |
Fields
|
Name of an executable.
data SimpleDesc Source
A simplified package description that tracks:
- Package dependencies
- Build tool dependencies
- Provided executables
It has fully resolved all conditionals
Constructors
SimpleDesc | |
Fields
|
Constructors
DepInfo | |
Fields |
Constructors
CompLibrary | |
CompExecutable | |
CompTestSuite | |
CompBenchmark |
Helper functions
simpleParse :: (MonadThrow m, Text a, Typeable a) => Text -> m a Source
unPackageName :: PackageName -> Text Source
mkPackageName :: Text -> PackageName Source
unFlagName :: FlagName -> Text Source
mkFlagName :: Text -> FlagName Source