cabal-install-3.10.2.1: The command-line interface for Cabal and Hackage.

Safe Haskell | None
Language | Haskell2010

Distribution.Client.Types.BuildResults

Synopsis

- type BuildOutcome = Either BuildFailure BuildResult
- type BuildOutcomes = Map UnitId BuildOutcome
- data BuildFailure
  - = PlanningFailed
  - | DependentFailed PackageId
  - | DownloadFailed SomeException
  - | UnpackFailed SomeException
  - | ConfigureFailed SomeException
  - | BuildFailed SomeException
  - | TestsFailed SomeException
  - | InstallFailed SomeException
- data BuildResult = BuildResult DocsResult TestsResult (Maybe InstalledPackageInfo)
- data TestsResult
  - = TestsNotTried
  - | TestsOk
- data DocsResult
  - = DocsNotTried
  - | DocsFailed
  - | DocsOk

# Documentation

type BuildOutcome = Either BuildFailure BuildResult #

A summary of the outcome for building a single package.

type BuildOutcomes = Map UnitId BuildOutcome #

A summary of the outcome for building a whole set of packages.

data BuildFailure #

Constructors

PlanningFailed |
DependentFailed PackageId |
DownloadFailed SomeException |
UnpackFailed SomeException |
ConfigureFailed SomeException |
BuildFailed SomeException |
TestsFailed SomeException |
InstallFailed SomeException |

#### Instances

Instances details

Structured BuildFailure # |
Instance details Defined in Distribution.Client.Types.BuildResults Methods structure :: Proxy BuildFailure -> Structure # structureHash' :: Tagged BuildFailure MD5
Exception BuildFailure # |
Instance details Defined in Distribution.Client.Types.BuildResults Methods toException :: BuildFailure -> SomeException # fromException :: SomeException -> Maybe BuildFailure # displayException :: BuildFailure -> String #
Generic BuildFailure # |
Instance details Defined in Distribution.Client.Types.BuildResults Associated Types
type Rep BuildFailure |
Instance details Defined in Distribution.Client.Types.BuildResults type Rep BuildFailure = D1 ('MetaData "BuildFailure" "Distribution.Client.Types.BuildResults" "cabal-install-3.10.2.1-EH6AEtqwlbKE3rh89dIk81" 'False) (((C1 ('MetaCons "PlanningFailed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DependentFailed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PackageId))) :+: (C1 ('MetaCons "DownloadFailed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeException)) :+: C1 ('MetaCons "UnpackFailed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeException)))) :+: ((C1 ('MetaCons "ConfigureFailed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeException)) :+: C1 ('MetaCons "BuildFailed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeException))) :+: (C1 ('MetaCons "TestsFailed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeException)) :+: C1 ('MetaCons "InstallFailed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeException)))))
Methods from :: BuildFailure -> Rep BuildFailure x # to :: Rep BuildFailure x -> BuildFailure #
Show BuildFailure # |
Instance details Defined in Distribution.Client.Types.BuildResults Methods showsPrec :: Int -> BuildFailure -> ShowS # show :: BuildFailure -> String # showList :: [BuildFailure] -> ShowS #
Binary BuildFailure # |
Instance details Defined in Distribution.Client.Types.BuildResults Methods put :: BuildFailure -> Put # get :: Get BuildFailure # putList :: [BuildFailure] -> Put #
type Rep BuildFailure # |
Instance details Defined in Distribution.Client.Types.BuildResults type Rep BuildFailure = D1 ('MetaData "BuildFailure" "Distribution.Client.Types.BuildResults" "cabal-install-3.10.2.1-EH6AEtqwlbKE3rh89dIk81" 'False) (((C1 ('MetaCons "PlanningFailed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DependentFailed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PackageId))) :+: (C1 ('MetaCons "DownloadFailed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeException)) :+: C1 ('MetaCons "UnpackFailed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeException)))) :+: ((C1 ('MetaCons "ConfigureFailed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeException)) :+: C1 ('MetaCons "BuildFailed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeException))) :+: (C1 ('MetaCons "TestsFailed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeException)) :+: C1 ('MetaCons "InstallFailed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeException)))))

data BuildResult #

Constructors

BuildResult DocsResult TestsResult (Maybe InstalledPackageInfo) |

#### Instances

Instances details

Structured BuildResult # |
Instance details Defined in Distribution.Client.Types.BuildResults Methods structure :: Proxy BuildResult -> Structure # structureHash' :: Tagged BuildResult MD5
Generic BuildResult # |
Instance details Defined in Distribution.Client.Types.BuildResults Associated Types
type Rep BuildResult |
Instance details Defined in Distribution.Client.Types.BuildResults type Rep BuildResult = D1 ('MetaData "BuildResult" "Distribution.Client.Types.BuildResults" "cabal-install-3.10.2.1-EH6AEtqwlbKE3rh89dIk81" 'False) (C1 ('MetaCons "BuildResult" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DocsResult) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TestsResult) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe InstalledPackageInfo)))))
Methods from :: BuildResult -> Rep BuildResult x # to :: Rep BuildResult x -> BuildResult #
Show BuildResult # |
Instance details Defined in Distribution.Client.Types.BuildResults Methods showsPrec :: Int -> BuildResult -> ShowS # show :: BuildResult -> String # showList :: [BuildResult] -> ShowS #
Binary BuildResult # |
Instance details Defined in Distribution.Client.Types.BuildResults Methods put :: BuildResult -> Put # get :: Get BuildResult # putList :: [BuildResult] -> Put #
type Rep BuildResult # |
Instance details Defined in Distribution.Client.Types.BuildResults type Rep BuildResult = D1 ('MetaData "BuildResult" "Distribution.Client.Types.BuildResults" "cabal-install-3.10.2.1-EH6AEtqwlbKE3rh89dIk81" 'False) (C1 ('MetaCons "BuildResult" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DocsResult) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TestsResult) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe InstalledPackageInfo)))))

data TestsResult #

Constructors

TestsNotTried |
TestsOk |

#### Instances

Instances details

Structured TestsResult # |
Instance details Defined in Distribution.Client.Types.BuildResults Methods structure :: Proxy TestsResult -> Structure # structureHash' :: Tagged TestsResult MD5
Generic TestsResult # |
Instance details Defined in Distribution.Client.Types.BuildResults Associated Types
type Rep TestsResult |
Instance details Defined in Distribution.Client.Types.BuildResults type Rep TestsResult = D1 ('MetaData "TestsResult" "Distribution.Client.Types.BuildResults" "cabal-install-3.10.2.1-EH6AEtqwlbKE3rh89dIk81" 'False) (C1 ('MetaCons "TestsNotTried" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TestsOk" 'PrefixI 'False) (U1 :: Type -> Type))
Methods from :: TestsResult -> Rep TestsResult x # to :: Rep TestsResult x -> TestsResult #
Show TestsResult # |
Instance details Defined in Distribution.Client.Types.BuildResults Methods showsPrec :: Int -> TestsResult -> ShowS # show :: TestsResult -> String # showList :: [TestsResult] -> ShowS #
Binary TestsResult # |
Instance details Defined in Distribution.Client.Types.BuildResults Methods put :: TestsResult -> Put # get :: Get TestsResult # putList :: [TestsResult] -> Put #
type Rep TestsResult # |
Instance details Defined in Distribution.Client.Types.BuildResults type Rep TestsResult = D1 ('MetaData "TestsResult" "Distribution.Client.Types.BuildResults" "cabal-install-3.10.2.1-EH6AEtqwlbKE3rh89dIk81" 'False) (C1 ('MetaCons "TestsNotTried" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TestsOk" 'PrefixI 'False) (U1 :: Type -> Type))

data DocsResult #

Constructors

DocsNotTried |
DocsFailed |
DocsOk |

#### Instances

Instances details

Structured DocsResult # |
Instance details Defined in Distribution.Client.Types.BuildResults Methods structure :: Proxy DocsResult -> Structure # structureHash' :: Tagged DocsResult MD5
Generic DocsResult # |
Instance details Defined in Distribution.Client.Types.BuildResults Associated Types
type Rep DocsResult |
Instance details Defined in Distribution.Client.Types.BuildResults type Rep DocsResult = D1 ('MetaData "DocsResult" "Distribution.Client.Types.BuildResults" "cabal-install-3.10.2.1-EH6AEtqwlbKE3rh89dIk81" 'False) (C1 ('MetaCons "DocsNotTried" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DocsFailed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DocsOk" 'PrefixI 'False) (U1 :: Type -> Type)))
Methods from :: DocsResult -> Rep DocsResult x # to :: Rep DocsResult x -> DocsResult #
Show DocsResult # |
Instance details Defined in Distribution.Client.Types.BuildResults Methods showsPrec :: Int -> DocsResult -> ShowS # show :: DocsResult -> String # showList :: [DocsResult] -> ShowS #
Binary DocsResult # |
Instance details Defined in Distribution.Client.Types.BuildResults Methods put :: DocsResult -> Put # get :: Get DocsResult # putList :: [DocsResult] -> Put #
type Rep DocsResult # |
Instance details Defined in Distribution.Client.Types.BuildResults type Rep DocsResult = D1 ('MetaData "DocsResult" "Distribution.Client.Types.BuildResults" "cabal-install-3.10.2.1-EH6AEtqwlbKE3rh89dIk81" 'False) (C1 ('MetaCons "DocsNotTried" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DocsFailed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DocsOk" 'PrefixI 'False) (U1 :: Type -> Type)))