stackage-build-plan-0.1.0.0: Calculate and print (in different formats) Stackage build plans

Safe HaskellNone
LanguageHaskell2010

Stackage.BuildPlan

Synopsis

Documentation

data Settings Source

Settings affecting various functions in this module.

Since 0.1.0.0

parseSnapshotSpec :: MonadThrow m => Text -> m SnapshotSpec Source

Parse a snapshot specification from the given Text.

Since 0.1.0.0

defaultSettings :: Settings Source

Default settings, to be tweaked via setter functions.

Since 0.1.0.0

setMirror :: Text -> Settings -> Settings Source

Set the mirror prefix for tarball downloads (shell script only).

Default: "https://s3.amazonaws.com/hackage.fpcomplete.com/package/"

Since 0.1.0.0

setSnapshot :: SnapshotSpec -> Settings -> Settings Source

Set the snapshot from which to pull the build plan.

Default: latest LTS release

Since 0.1.0.0

data ShellCommands Source

How to generate commands for shell output.

Since 0.1.0.0

setShellCommands :: ShellCommands -> Settings -> Settings Source

Set the shell commands when using shell formatting.

Default: abstractCommands

Since 0.1.0.0

abstractCommands :: ShellCommands Source

Use abstract commands like build_plan_fetch.

See: https:/github.comfpcostackage-serverissues/95#issuecomment-97146188

Since 0.1.0.0

simpleCommands :: ShellCommands Source

Use simple commands requiring no wrapper shell script

Since 0.1.0.0

getBuildPlan :: Settings -> [PackageName] -> IO [ToInstall] Source

toSimpleText :: [ToInstall] -> Text Source

toShellScript :: Settings -> [ToInstall] -> Text Source