stackage-0.6.0.1: "Stable Hackage," tools for creating a vetted set of packages from Hackage.

Safe HaskellNone
LanguageHaskell2010

Stackage.ServerBundle

Description

Create a bundle to be uploaded to Stackage Server.

Synopsis

Documentation

serverBundle Source

Arguments

:: EpochTime 
-> Text

title

-> Text

slug

-> BuildPlan 
-> LByteString 

epochTime :: IO EpochTime Source

Get current time

bpAllPackages :: BuildPlan -> Map PackageName Version Source

All package/versions in a build plan, including core packages.

Note that this may include packages not available on Hackage.

docsListing Source

Arguments

:: BuildPlan 
-> FilePath

docs directory

-> IO DocMap 

createBundleV2 :: CreateBundleV2 -> IO () Source

Create a V2 bundle, which contains the build plan, metadata, docs, and doc map.

data CreateBundleV2 Source

Constructors

CreateBundleV2 

Fields

cb2Plan :: BuildPlan
 
cb2Type :: SnapshotType
 
cb2DocsDir :: FilePath
 
cb2Dest :: FilePath
 

writeIndexStyle Source

Arguments

:: Maybe Text

snapshot id

-> FilePath

docs dir

-> IO [String] 

type DocMap = Map Text PackageDocs Source

Package name is key

data PackageDocs Source

Constructors

PackageDocs 

Fields

pdVersion :: Text
 
pdModules :: Map Text [Text]

module name, path

Instances

ToJSON PackageDocs 
FromJSON PackageDocs