License | BSD-3-Clause |
---|---|
Safe Haskell | None |
Language | GHC2021 |
Stack.Types.GhcPkgExe
Description
Synopsis
- data GhcPkgPrettyException
- = CannotParse !String !String !String
- | CannotOpenDBForModification !(SomeBase Dir) !IOException
- | SingleFileDBUnsupported !(SomeBase Dir)
- | ParsePackageInfoExceptions !String
- | CannotFindPackage !PackageArg !(Maybe (SomeBase Dir))
- | CannotParseRelFileBug !String
- | CannotParseDirectoryWithDBug !String
- | CannotRecacheAfterUnregister !(Path Abs Dir) !SomeException
- data GlobPackageIdentifier
- data PackageArg
Documentation
data GhcPkgPrettyException Source #
Type representing 'pretty' exceptions thrown by functions exported by the GHC.Utils.GhcPkg.Main.Compat module or the Stack.GhcPkg module.
Constructors
CannotParse !String !String !String | |
CannotOpenDBForModification !(SomeBase Dir) !IOException | |
SingleFileDBUnsupported !(SomeBase Dir) | |
ParsePackageInfoExceptions !String | |
CannotFindPackage !PackageArg !(Maybe (SomeBase Dir)) | |
CannotParseRelFileBug !String | |
CannotParseDirectoryWithDBug !String | |
CannotRecacheAfterUnregister !(Path Abs Dir) !SomeException |
Instances
Exception GhcPkgPrettyException Source # | |
Defined in Stack.Types.GhcPkgExe | |
Show GhcPkgPrettyException Source # | |
Defined in Stack.Types.GhcPkgExe Methods showsPrec :: Int -> GhcPkgPrettyException -> ShowS show :: GhcPkgPrettyException -> String # showList :: [GhcPkgPrettyException] -> ShowS | |
Pretty GhcPkgPrettyException Source # | |
Defined in Stack.Types.GhcPkgExe Methods pretty :: GhcPkgPrettyException -> StyleDoc # |
data GlobPackageIdentifier Source #
Either an exact PackageIdentifier
, or a glob for all packages
matching PackageName
.
data PackageArg Source #
Represents how a package may be specified by a user on the command line.
Constructors
Id GlobPackageIdentifier | A package identifier foo-0.1, or a glob foo-* |
IUId UnitId | An installed package ID foo-0.1-HASH. This is guaranteed to uniquely match a single entry in the package database. |
Substring String (String -> Bool) | A glob against the package name. The first string is the literal
glob, the second is a function which returns |
Instances
Show PackageArg Source # | |
Defined in Stack.Types.GhcPkgExe Methods showsPrec :: Int -> PackageArg -> ShowS show :: PackageArg -> String # showList :: [PackageArg] -> ShowS |