| 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
- data CabalFileInfo = CabalFileInfo {}
- display :: Text a => a -> Text
- simpleParse :: (MonadThrow m, Text a, Typeable a) => Text -> m a
- unPackageName :: PackageName -> String
- mkPackageName :: String -> PackageName
- unFlagName :: FlagName -> String
- mkFlagName :: String -> FlagName
- intersectVersionRanges :: VersionRange -> VersionRange -> VersionRange
- compToText :: Component -> Text
Types
data SnapshotType Source #
data PackageDocs Source #
Instances
Constructors
| BuildPlan | |
Fields
| |
data PackageConstraints Source #
Constructors
| PackageConstraints | |
Fields
| |
Constructors
| ExpectSuccess | |
| ExpectFailure | |
| Don'tBuild | when the test suite will pull in things we don't want |
data SystemInfo Source #
Constructors
| SystemInfo | |
Fields
| |
Instances
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
| |
Instances
Constructors
| DepInfo | |
Fields | |
Constructors
| CompLibrary | |
| CompExecutable | |
| CompTestSuite | |
| CompBenchmark |
Helper functions
simpleParse :: (MonadThrow m, Text a, Typeable a) => Text -> m a Source #
unPackageName :: PackageName -> String #
Convert PackageName to String
mkPackageName :: String -> PackageName #
Construct a PackageName from a String
mkPackageName is the inverse to unPackageName
Note: No validations are performed to ensure that the resulting
PackageName is valid
Since: 2.0
mkFlagName :: String -> FlagName #
Construct a FlagName from a String
mkFlagName is the inverse to unFlagName
Note: No validations are performed to ensure that the resulting
FlagName is valid
Since: 2.0
compToText :: Component -> Text Source #