| Copyright | (c) David Waern 2008 |
|---|---|
| License | BSD-like |
| Maintainer | david.waern@gmail.com |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Distribution.Client.BuildReports.Anonymous
Description
Anonymous build report data structure, printing and parsing
Synopsis
- data BuildReport = BuildReport {}
- 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 #
Constructors
| BuildReport | |
Fields
| |
Instances
data InstallOutcome #
Constructors
| PlanningFailed | |
| DependencyFailed PackageIdentifier | |
| DownloadFailed | |
| UnpackFailed | |
| SetupFailed | |
| ConfigureFailed | |
| BuildFailed | |
| TestsFailed | |
| InstallFailed | |
| InstallOk |
Instances
| Parsec InstallOutcome # | |||||
Defined in Distribution.Client.BuildReports.Types Methods parsec :: CabalParsing m => m InstallOutcome # | |||||
| Pretty InstallOutcome # | |||||
Defined in Distribution.Client.BuildReports.Types Methods pretty :: InstallOutcome -> Doc # prettyVersioned :: CabalSpecVersion -> InstallOutcome -> Doc # | |||||
| Generic InstallOutcome # | |||||
Defined in Distribution.Client.BuildReports.Types Associated Types
Methods from :: InstallOutcome -> Rep InstallOutcome x # to :: Rep InstallOutcome x -> InstallOutcome # | |||||
| Show InstallOutcome # | |||||
Defined in Distribution.Client.BuildReports.Types Methods showsPrec :: Int -> InstallOutcome -> ShowS # show :: InstallOutcome -> String # showList :: [InstallOutcome] -> ShowS # | |||||
| Eq InstallOutcome # | |||||
Defined in Distribution.Client.BuildReports.Types Methods (==) :: InstallOutcome -> InstallOutcome -> Bool # (/=) :: InstallOutcome -> InstallOutcome -> Bool # | |||||
| type Rep InstallOutcome # | |||||
Defined in Distribution.Client.BuildReports.Types type Rep InstallOutcome = D1 ('MetaData "InstallOutcome" "Distribution.Client.BuildReports.Types" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" '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 # | |||||
Defined in Distribution.Client.BuildReports.Types Methods parsec :: CabalParsing m => m Outcome # | |||||
| Pretty Outcome # | |||||
Defined in Distribution.Client.BuildReports.Types | |||||
| Bounded Outcome # | |||||
| Enum Outcome # | |||||
| Generic Outcome # | |||||
Defined in Distribution.Client.BuildReports.Types Associated Types
| |||||
| Show Outcome # | |||||
| Eq Outcome # | |||||
| type Rep Outcome # | |||||
Defined in Distribution.Client.BuildReports.Types type Rep Outcome = D1 ('MetaData "Outcome" "Distribution.Client.BuildReports.Types" "cabal-install-3.12.1.0-G554PkJj2SpDqyarXp9tbt" '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 #
parsing and pretty printing
parseBuildReportList :: ByteString -> [BuildReport] #
showBuildReport :: BuildReport -> String #