| Copyright | (c) David Waern 2008 |
|---|---|
| License | BSD-like |
| Maintainer | david.waern@gmail.com |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Distribution.Client.BuildReports.Anonymous
Description
Anonymous build report data structure, printing and parsing
Synopsis
- data BuildReport = BuildReport {
- package :: PackageIdentifier
- os :: OS
- arch :: Arch
- compiler :: CompilerId
- client :: PackageIdentifier
- flagAssignment :: FlagAssignment
- dependencies :: [PackageIdentifier]
- installOutcome :: InstallOutcome
- docsOutcome :: Outcome
- testsOutcome :: Outcome
- data InstallOutcome
- data Outcome
- newBuildReport :: OS -> Arch -> CompilerId -> PackageIdentifier -> FlagAssignment -> [PackageIdentifier] -> BuildOutcome -> BuildReport
- parseBuildReport :: ByteString -> Either String BuildReport
- parseBuildReportList :: ByteString -> [BuildReport]
- showBuildReport :: BuildReport -> String
- cabalInstallID :: PackageIdentifier
Documentation
data BuildReport Source #
Constructors
| BuildReport | |
Fields
| |
Instances
| Generic BuildReport Source # | |
Defined in Distribution.Client.BuildReports.Types Associated Types type Rep BuildReport :: Type -> Type | |
| Show BuildReport Source # | |
Defined in Distribution.Client.BuildReports.Types Methods showsPrec :: Int -> BuildReport -> ShowS # show :: BuildReport -> String # showList :: [BuildReport] -> ShowS # | |
| Eq BuildReport Source # | |
Defined in Distribution.Client.BuildReports.Types | |
| type Rep BuildReport Source # | |
Defined in Distribution.Client.BuildReports.Types type Rep BuildReport = D1 ('MetaData "BuildReport" "Distribution.Client.BuildReports.Types" "cabal-install-3.10.3.0-9uEojw6RbqnA2vVujeQDJg" 'False) (C1 ('MetaCons "BuildReport" 'PrefixI 'True) (((S1 ('MetaSel ('Just "package") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PackageIdentifier) :*: S1 ('MetaSel ('Just "os") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 OS)) :*: (S1 ('MetaSel ('Just "arch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Arch) :*: (S1 ('MetaSel ('Just "compiler") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CompilerId) :*: S1 ('MetaSel ('Just "client") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PackageIdentifier)))) :*: ((S1 ('MetaSel ('Just "flagAssignment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FlagAssignment) :*: S1 ('MetaSel ('Just "dependencies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PackageIdentifier])) :*: (S1 ('MetaSel ('Just "installOutcome") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InstallOutcome) :*: (S1 ('MetaSel ('Just "docsOutcome") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Outcome) :*: S1 ('MetaSel ('Just "testsOutcome") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Outcome)))))) | |
data InstallOutcome Source #
Constructors
| PlanningFailed | |
| DependencyFailed PackageIdentifier | |
| DownloadFailed | |
| UnpackFailed | |
| SetupFailed | |
| ConfigureFailed | |
| BuildFailed | |
| TestsFailed | |
| InstallFailed | |
| InstallOk |
Instances
| Parsec InstallOutcome Source # | |
Defined in Distribution.Client.BuildReports.Types Methods parsec :: CabalParsing m => m InstallOutcome # | |
| Pretty InstallOutcome Source # | |
Defined in Distribution.Client.BuildReports.Types Methods pretty :: InstallOutcome -> Doc # prettyVersioned :: CabalSpecVersion -> InstallOutcome -> Doc # | |
| Generic InstallOutcome Source # | |
Defined in Distribution.Client.BuildReports.Types Associated Types type Rep InstallOutcome :: Type -> Type | |
| Show InstallOutcome Source # | |
Defined in Distribution.Client.BuildReports.Types Methods showsPrec :: Int -> InstallOutcome -> ShowS # show :: InstallOutcome -> String # showList :: [InstallOutcome] -> ShowS # | |
| Eq InstallOutcome Source # | |
Defined in Distribution.Client.BuildReports.Types Methods (==) :: InstallOutcome -> InstallOutcome -> Bool # (/=) :: InstallOutcome -> InstallOutcome -> Bool # | |
| type Rep InstallOutcome Source # | |
Defined in Distribution.Client.BuildReports.Types type Rep InstallOutcome = D1 ('MetaData "InstallOutcome" "Distribution.Client.BuildReports.Types" "cabal-install-3.10.3.0-9uEojw6RbqnA2vVujeQDJg" 'False) (((C1 ('MetaCons "PlanningFailed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DependencyFailed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PackageIdentifier))) :+: (C1 ('MetaCons "DownloadFailed" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UnpackFailed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SetupFailed" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "ConfigureFailed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BuildFailed" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "TestsFailed" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "InstallFailed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InstallOk" 'PrefixI 'False) (U1 :: Type -> Type))))) | |
Instances
| Parsec Outcome Source # | |
Defined in Distribution.Client.BuildReports.Types Methods parsec :: CabalParsing m => m Outcome # | |
| Pretty Outcome Source # | |
Defined in Distribution.Client.BuildReports.Types | |
| Bounded Outcome Source # | |
| Enum Outcome Source # | |
| Generic Outcome Source # | |
| Show Outcome Source # | |
| Eq Outcome Source # | |
| type Rep Outcome Source # | |
Defined in Distribution.Client.BuildReports.Types type Rep Outcome = D1 ('MetaData "Outcome" "Distribution.Client.BuildReports.Types" "cabal-install-3.10.3.0-9uEojw6RbqnA2vVujeQDJg" 'False) (C1 ('MetaCons "NotTried" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Failed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Ok" 'PrefixI 'False) (U1 :: Type -> Type))) | |
Constructing and writing reports
newBuildReport :: OS -> Arch -> CompilerId -> PackageIdentifier -> FlagAssignment -> [PackageIdentifier] -> BuildOutcome -> BuildReport Source #
parsing and pretty printing
parseBuildReport :: ByteString -> Either String BuildReport Source #
parseBuildReportList :: ByteString -> [BuildReport] Source #
showBuildReport :: BuildReport -> String Source #