Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Settings
- data SnapshotSpec
- parseSnapshotSpec :: MonadThrow m => Text -> m SnapshotSpec
- defaultSettings :: Settings
- setMirror :: Text -> Settings -> Settings
- setSnapshot :: SnapshotSpec -> Settings -> Settings
- setFullDeps :: Bool -> Settings -> Settings
- data ShellCommands
- setShellCommands :: ShellCommands -> Settings -> Settings
- abstractCommands :: ShellCommands
- simpleCommands :: ShellCommands
- data ToInstall = ToInstall {}
- getBuildPlan :: Settings -> [PackageName] -> IO [ToInstall]
- toSimpleText :: [ToInstall] -> Text
- toShellScript :: Settings -> [ToInstall] -> Text
- mkPackageName :: String -> PackageName
Documentation
data SnapshotSpec Source #
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
setFullDeps :: Bool -> Settings -> Settings Source #
Should we trace dependencies of test suites and benchmarks?
Default: False
Since 0.1.1.0
data ShellCommands Source #
How to generate commands for shell output.
Since 0.1.0.0
setShellCommands :: ShellCommands -> Settings -> Settings Source #
abstractCommands :: ShellCommands Source #
Use abstract commands like build_plan_fetch.
See: https://github.com/fpco/stackage-server/issues/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 #
mkPackageName :: String -> PackageName #
Construct a PackageName
from a String
mkPackageName
is the inverse to unPackageName
Note: No validations are performed to ensure that the resulting
PackageName
is valid
Since: 2.0