Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data BuildException
- = Couldn'tFindPkgId PackageName
- | CompilerVersionMismatch (Maybe (ActualCompiler, Arch)) (WantedCompiler, Arch) GHCVariant CompilerBuild VersionCheck (Maybe (Path Abs File)) Text
- | Couldn'tParseTargets [Text]
- | UnknownTargets (Set PackageName) (Map PackageName Version) (Path Abs File)
- | TestSuiteFailure PackageIdentifier (Map Text (Maybe ExitCode)) (Maybe (Path Abs File)) ByteString
- | TestSuiteTypeUnsupported TestSuiteInterface
- | LocalPackageDoesn'tMatchTarget PackageName Version Version
- | NoSetupHsFound (Path Abs Dir)
- | InvalidGhcOptionsSpecification [PackageName]
- | TestSuiteExeMissing Bool String String String
- | CabalCopyFailed Bool String
- | LocalPackagesPresent [PackageIdentifier]
- | CouldNotLockDistDir !(Path Abs File)
- | TaskCycleBug PackageIdentifier
- | PackageIdMissingBug PackageIdentifier
- | AllInOneBuildBug
- | MultipleResultsBug PackageName [DumpPackage]
- | TemplateHaskellNotFoundBug
- | HaddockIndexNotFound
- | ShowBuildErrorBug
- data BuildPrettyException
- = ConstructPlanFailed [ConstructPlanException] (Path Abs File) (Path Abs Dir) Bool ParentMap (Set PackageName) (Map PackageName [PackageName])
- | ExecutionFailure [SomeException]
- | CabalExitedUnsuccessfully ExitCode PackageIdentifier (Path Abs File) [String] (Maybe (Path Abs File)) [Text]
- | SetupHsBuildFailure ExitCode (Maybe PackageIdentifier) (Path Abs File) [String] (Maybe (Path Abs File)) [Text]
- | TargetParseException [StyleDoc]
- | SomeTargetsNotBuildable [(PackageName, NamedComponent)]
- | InvalidFlagSpecification (Set UnusedFlags)
- | GHCProfOptionInvalid
- pprintTargetParseErrors :: [StyleDoc] -> StyleDoc
- data ConstructPlanException
- type LatestApplicableVersion = Maybe (Version, BlobKey)
- data BadDependency
Documentation
data BuildException Source #
Type representing exceptions thrown by functions exported by modules with
names beginning Stack.Build
.
Instances
Exception BuildException Source # | |
Defined in Stack.Types.Build.Exception | |
Show BuildException Source # | |
Defined in Stack.Types.Build.Exception showsPrec :: Int -> BuildException -> ShowS # show :: BuildException -> String # showList :: [BuildException] -> ShowS # |
data BuildPrettyException Source #
Instances
Exception BuildPrettyException Source # | |
Show BuildPrettyException Source # | |
Defined in Stack.Types.Build.Exception showsPrec :: Int -> BuildPrettyException -> ShowS # show :: BuildPrettyException -> String # showList :: [BuildPrettyException] -> ShowS # | |
Pretty BuildPrettyException Source # | |
Defined in Stack.Types.Build.Exception pretty :: BuildPrettyException -> StyleDoc # |
pprintTargetParseErrors :: [StyleDoc] -> StyleDoc Source #
Helper function to pretty print an error message for target parse errors.
data ConstructPlanException Source #
DependencyCycleDetected [PackageName] | |
DependencyPlanFailures Package (Map PackageName (VersionRange, LatestApplicableVersion, BadDependency)) | |
UnknownPackage PackageName | Recommend adding to extra-deps, give a helpful version number? |
Instances
Show ConstructPlanException Source # | |
Defined in Stack.Types.Build.Exception showsPrec :: Int -> ConstructPlanException -> ShowS # show :: ConstructPlanException -> String # showList :: [ConstructPlanException] -> ShowS # | |
Eq ConstructPlanException Source # | |
Defined in Stack.Types.Build.Exception |
type LatestApplicableVersion = Maybe (Version, BlobKey) Source #
The latest applicable version and it's latest Cabal file revision. For display purposes only, Nothing if package not found
data BadDependency Source #
Reason why a dependency was not used
NotInBuildPlan | |
Couldn'tResolveItsDependencies Version | |
DependencyMismatch Version | |
HasNoLibrary | See description of |
BDDependencyCycleDetected ![PackageName] |
Instances
Show BadDependency Source # | |
Defined in Stack.Types.Build.Exception showsPrec :: Int -> BadDependency -> ShowS # show :: BadDependency -> String # showList :: [BadDependency] -> ShowS # | |
Eq BadDependency Source # | |
Defined in Stack.Types.Build.Exception (==) :: BadDependency -> BadDependency -> Bool # (/=) :: BadDependency -> BadDependency -> Bool # | |
Ord BadDependency Source # | |
Defined in Stack.Types.Build.Exception compare :: BadDependency -> BadDependency -> Ordering # (<) :: BadDependency -> BadDependency -> Bool # (<=) :: BadDependency -> BadDependency -> Bool # (>) :: BadDependency -> BadDependency -> Bool # (>=) :: BadDependency -> BadDependency -> Bool # max :: BadDependency -> BadDependency -> BadDependency # min :: BadDependency -> BadDependency -> BadDependency # |