-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Tools for curating Stackage bundles -- -- Please see http://www.stackage.org/package/stackage-curator for -- a description and documentation. @package stackage-curator @version 0.12.0 -- | Upload Haddock documentation to S3. module Stackage.Curator.UploadDocs -- | Uses newEnv for S3 credentials. uploadDocs :: FilePath -> FilePath -> Text -> Text -> IO () upload :: (MonadResource m) => Bool -> Env -> Text -> Text -> Consumer ByteString m () module Stackage.Prelude -- | There seems to be a bug in Cabal where serializing and deserializing -- version ranges winds up with different representations. So we have a -- super-simplifier to deal with that. simplifyVersionRange :: VersionRange -> VersionRange -- | Topologically sort so that items with dependencies occur after those -- dependencies. topologicalSort :: (Ord key, Show key, MonadThrow m, Typeable key) => (value -> finalValue) -> (value -> Set key) -> Map key value -> m (Vector (key, finalValue)) data TopologicalSortException key NoEmptyDeps :: (Map key (Set key)) -> TopologicalSortException key copyDir :: FilePath -> FilePath -> IO () data Target TargetNightly :: !Day -> Target TargetLts :: !Int -> !Int -> Target targetSlug :: Target -> Text instance GHC.Show.Show Stackage.Prelude.Target instance GHC.Show.Show key => GHC.Show.Show (Stackage.Prelude.TopologicalSortException key) instance (GHC.Show.Show key, Data.Typeable.Internal.Typeable key) => GHC.Exception.Exception (Stackage.Prelude.TopologicalSortException key) module Stackage.CorePackages -- | Get a Map of all of the core packages. Core packages are -- defined as packages which ship with GHC itself. -- -- Precondition: GHC global package database has only core packages, and -- GHC ships with just a single version of each packages. getCorePackages :: IO (Map PackageName Version) -- | A list of executables that are shipped with GHC. getCoreExecutables :: IO (Set ExeName) getGhcVersion :: IO Version -- | The constraints on package selection for a new build plan. module Stackage.BuildConstraints data BuildConstraints BuildConstraints :: Set PackageName -> (PackageName -> PackageConstraints) -> SystemInfo -> Map Text (Set Text) -> BuildConstraints -- | This does not include core packages. [bcPackages] :: BuildConstraints -> Set PackageName [bcPackageConstraints] :: BuildConstraints -> PackageName -> PackageConstraints [bcSystemInfo] :: BuildConstraints -> SystemInfo -- | map an account to set of pingees [bcGithubUsers] :: BuildConstraints -> Map Text (Set Text) data PackageConstraints :: * PackageConstraints :: VersionRange -> Maybe Maintainer -> TestState -> TestState -> Bool -> Map FlagName Bool -> Bool -> Bool -> PackageConstraints [pcVersionRange] :: PackageConstraints -> VersionRange [pcMaintainer] :: PackageConstraints -> Maybe Maintainer [pcTests] :: PackageConstraints -> TestState [pcHaddocks] :: PackageConstraints -> TestState [pcBuildBenchmarks] :: PackageConstraints -> Bool [pcFlagOverrides] :: PackageConstraints -> Map FlagName Bool [pcEnableLibProfile] :: PackageConstraints -> Bool -- | Don't even bother building this library, useful when dealing with -- OS-specific packages. See: -- https://github.com/fpco/stackage-curator/issues/3 [pcSkipBuild] :: PackageConstraints -> Bool data TestState :: * ExpectSuccess :: TestState ExpectFailure :: TestState -- | when the test suite will pull in things we don't want Don'tBuild :: TestState data SystemInfo :: * SystemInfo :: Version -> OS -> Arch -> Map PackageName Version -> Set ExeName -> SystemInfo [siGhcVersion] :: SystemInfo -> Version [siOS] :: SystemInfo -> OS [siArch] :: SystemInfo -> Arch [siCorePackages] :: SystemInfo -> Map PackageName Version [siCoreExecutables] :: SystemInfo -> Set ExeName getSystemInfo :: IO SystemInfo -- | The proposed plan from the requirements provided by contributors. -- -- Checks the current directory for a build-constraints.yaml file and -- uses it if present. If not, downloads from Github. defaultBuildConstraints :: Manager -> IO BuildConstraints toBC :: ConstraintFile -> IO BuildConstraints data BuildConstraintsSource BCSDefault :: BuildConstraintsSource BCSFile :: FilePath -> BuildConstraintsSource BCSWeb :: Request -> BuildConstraintsSource loadBuildConstraints :: BuildConstraintsSource -> Manager -> IO BuildConstraints -- | Modify the version bounds with the given Dependencies setConstraints :: [Dependency] -> BuildConstraints -> BuildConstraints instance GHC.Show.Show Stackage.BuildConstraints.MismatchedGhcVersion instance GHC.Show.Show Stackage.BuildConstraints.BuildConstraintsSource instance Data.Aeson.Types.Class.FromJSON Stackage.BuildConstraints.ConstraintFile instance GHC.Exception.Exception Stackage.BuildConstraints.MismatchedGhcVersion module Stackage.GithubPings -- | Determine accounts to be pinged on Github based on various metadata in -- the package description. getGithubPings :: GenericPackageDescription -> Set Text applyGithubMapping :: BuildConstraints -> Set Text -> Set Text -- | Dealing with the 00-index file and all its cabal files. module Stackage.PackageIndex -- | Stream all of the cabal files from the 00-index tar file. sourcePackageIndex :: (MonadThrow m, MonadResource m, MonadActive m, MonadBaseControl IO m) => Producer m UnparsedCabalFile -- | A cabal file with name and version parsed from the filepath, and the -- package description itself ready to be parsed. It's left in unparsed -- form for efficiency. data UnparsedCabalFile UnparsedCabalFile :: PackageName -> Version -> FilePath -> LByteString -> UnparsedCabalFile [ucfName] :: UnparsedCabalFile -> PackageName [ucfVersion] :: UnparsedCabalFile -> Version [ucfPath] :: UnparsedCabalFile -> FilePath [ucfContent] :: UnparsedCabalFile -> LByteString data SimplifiedPackageDescription SimplifiedPackageDescription :: PackageName -> Version -> Maybe (CondTree ConfVar [Dependency] SimplifiedComponentInfo) -> [(String, CondTree ConfVar [Dependency] SimplifiedComponentInfo)] -> [(String, CondTree ConfVar [Dependency] SimplifiedComponentInfo)] -> [(String, CondTree ConfVar [Dependency] SimplifiedComponentInfo)] -> Map FlagName Bool -> Set Text -> SimplifiedPackageDescription [spdName] :: SimplifiedPackageDescription -> PackageName [spdVersion] :: SimplifiedPackageDescription -> Version [spdCondLibrary] :: SimplifiedPackageDescription -> Maybe (CondTree ConfVar [Dependency] SimplifiedComponentInfo) [spdCondExecutables] :: SimplifiedPackageDescription -> [(String, CondTree ConfVar [Dependency] SimplifiedComponentInfo)] [spdCondTestSuites] :: SimplifiedPackageDescription -> [(String, CondTree ConfVar [Dependency] SimplifiedComponentInfo)] [spdCondBenchmarks] :: SimplifiedPackageDescription -> [(String, CondTree ConfVar [Dependency] SimplifiedComponentInfo)] [spdPackageFlags] :: SimplifiedPackageDescription -> Map FlagName Bool [spdGithubPings] :: SimplifiedPackageDescription -> Set Text data SimplifiedComponentInfo SimplifiedComponentInfo :: [Dependency] -> Set Text -> SimplifiedComponentInfo [sciBuildTools] :: SimplifiedComponentInfo -> [Dependency] [sciModules] :: SimplifiedComponentInfo -> Set Text -- | Get all of the latest descriptions for name/version pairs matching the -- given criterion. getLatestDescriptions :: MonadIO m => (PackageName -> Version -> Bool) -> (SimplifiedPackageDescription -> IO desc) -> m (Map PackageName desc) instance GHC.Generics.Selector Stackage.PackageIndex.S1_0_2CondTree instance GHC.Generics.Selector Stackage.PackageIndex.S1_0_1CondTree instance GHC.Generics.Selector Stackage.PackageIndex.S1_0_0CondTree instance GHC.Generics.Constructor Stackage.PackageIndex.C1_0CondTree instance GHC.Generics.Datatype Stackage.PackageIndex.D1CondTree instance GHC.Generics.Constructor Stackage.PackageIndex.C1_4Condition instance GHC.Generics.Constructor Stackage.PackageIndex.C1_3Condition instance GHC.Generics.Constructor Stackage.PackageIndex.C1_2Condition instance GHC.Generics.Constructor Stackage.PackageIndex.C1_1Condition instance GHC.Generics.Constructor Stackage.PackageIndex.C1_0Condition instance GHC.Generics.Datatype Stackage.PackageIndex.D1Condition instance GHC.Generics.Constructor Stackage.PackageIndex.C1_3ConfVar instance GHC.Generics.Constructor Stackage.PackageIndex.C1_2ConfVar instance GHC.Generics.Constructor Stackage.PackageIndex.C1_1ConfVar instance GHC.Generics.Constructor Stackage.PackageIndex.C1_0ConfVar instance GHC.Generics.Datatype Stackage.PackageIndex.D1ConfVar instance GHC.Generics.Selector Stackage.PackageIndex.S1_0_7SimplifiedPackageDescription instance GHC.Generics.Selector Stackage.PackageIndex.S1_0_6SimplifiedPackageDescription instance GHC.Generics.Selector Stackage.PackageIndex.S1_0_5SimplifiedPackageDescription instance GHC.Generics.Selector Stackage.PackageIndex.S1_0_4SimplifiedPackageDescription instance GHC.Generics.Selector Stackage.PackageIndex.S1_0_3SimplifiedPackageDescription instance GHC.Generics.Selector Stackage.PackageIndex.S1_0_2SimplifiedPackageDescription instance GHC.Generics.Selector Stackage.PackageIndex.S1_0_1SimplifiedPackageDescription instance GHC.Generics.Selector Stackage.PackageIndex.S1_0_0SimplifiedPackageDescription instance GHC.Generics.Constructor Stackage.PackageIndex.C1_0SimplifiedPackageDescription instance GHC.Generics.Datatype Stackage.PackageIndex.D1SimplifiedPackageDescription instance GHC.Generics.Selector Stackage.PackageIndex.S1_0_1SimplifiedComponentInfo instance GHC.Generics.Selector Stackage.PackageIndex.S1_0_0SimplifiedComponentInfo instance GHC.Generics.Constructor Stackage.PackageIndex.C1_0SimplifiedComponentInfo instance GHC.Generics.Datatype Stackage.PackageIndex.D1SimplifiedComponentInfo instance GHC.Show.Show Stackage.PackageIndex.CabalParseException instance GHC.Show.Show Stackage.PackageIndex.InvalidCabalPath instance GHC.Generics.Generic Stackage.PackageIndex.SimplifiedPackageDescription instance GHC.Generics.Generic Stackage.PackageIndex.SimplifiedComponentInfo instance GHC.Generics.Generic (Distribution.PackageDescription.CondTree v c a) instance GHC.Generics.Generic (Distribution.PackageDescription.Condition c) instance GHC.Generics.Generic Distribution.PackageDescription.ConfVar instance GHC.Base.Functor (Distribution.PackageDescription.CondTree v c) instance Data.Binary.Class.Binary Stackage.PackageIndex.SimplifiedComponentInfo instance Data.Binary.Tagged.HasStructuralInfo Stackage.PackageIndex.SimplifiedComponentInfo instance Data.Binary.Tagged.HasSemanticVersion Stackage.PackageIndex.SimplifiedComponentInfo instance Data.Binary.Class.Binary Stackage.PackageIndex.SimplifiedPackageDescription instance Data.Binary.Tagged.HasStructuralInfo Stackage.PackageIndex.SimplifiedPackageDescription instance Data.Binary.Tagged.HasSemanticVersion Stackage.PackageIndex.SimplifiedPackageDescription instance (Data.Binary.Class.Binary v, Data.Binary.Class.Binary c, Data.Binary.Class.Binary a) => Data.Binary.Class.Binary (Distribution.PackageDescription.CondTree v c a) instance Data.Binary.Class.Binary c => Data.Binary.Class.Binary (Distribution.PackageDescription.Condition c) instance Data.Binary.Class.Binary Distribution.PackageDescription.ConfVar instance Data.Binary.Tagged.HasStructuralInfo a => Data.Binary.Tagged.HasStructuralInfo (Distribution.PackageDescription.CondTree Distribution.PackageDescription.ConfVar [Distribution.Package.Dependency] a) instance Data.Binary.Tagged.HasStructuralInfo Distribution.Package.Dependency instance Data.Binary.Tagged.HasStructuralInfo v => Data.Binary.Tagged.HasStructuralInfo (Distribution.PackageDescription.Condition v) instance Data.Binary.Tagged.HasStructuralInfo Distribution.PackageDescription.ConfVar instance Data.Binary.Tagged.HasStructuralInfo Distribution.System.Arch instance Data.Binary.Tagged.HasStructuralInfo Distribution.System.OS instance Data.Binary.Tagged.HasStructuralInfo Distribution.Compiler.CompilerFlavor instance Data.Binary.Tagged.HasStructuralInfo Distribution.Package.PackageName instance Data.Binary.Tagged.HasStructuralInfo Distribution.Version.VersionRange instance Data.Binary.Tagged.HasStructuralInfo Distribution.PackageDescription.FlagName instance GHC.Exception.Exception Stackage.PackageIndex.InvalidCabalPath instance GHC.Exception.Exception Stackage.PackageIndex.CabalParseException -- | Manipulate GenericPackageDescription from Cabal into -- something more useful for us. module Stackage.PackageDescription -- | A simplified package description that tracks: -- --