Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provide information about the current build.
This module provides build meta information like build directory, build-id and build-time.
Since: 0.5.65
Synopsis
- getBuildId :: Member BuildInfoReader e => Eff e String
- getBuildDate :: Member BuildInfoReader e => Eff e String
- getBuildDir :: Member BuildInfoReader e => Eff e FilePath
- withBuildInfo :: (Lifted IO e, MonadBaseControl IO (Eff e), Member B9ConfigReader e, Member ExcB9 e, Member EnvironmentReader e, Member LoggerReader e, HasCallStack) => Bool -> Eff (BuildInfoReader ': e) a -> Eff e a
- type BuildInfoReader = Reader BuildInfo
- isInteractive :: Member BuildInfoReader e => Eff e Bool
Documentation
getBuildId :: Member BuildInfoReader e => Eff e String Source #
getBuildDate :: Member BuildInfoReader e => Eff e String Source #
getBuildDir :: Member BuildInfoReader e => Eff e FilePath Source #
withBuildInfo :: (Lifted IO e, MonadBaseControl IO (Eff e), Member B9ConfigReader e, Member ExcB9 e, Member EnvironmentReader e, Member LoggerReader e, HasCallStack) => Bool -> Eff (BuildInfoReader ': e) a -> Eff e a Source #
Create the build directories, generate (hash) the build-id and execute the given action.
Bindings added to the text template parameter environment:
projectRoot
the directory that contains the sources of the project to buildbuildDir
the temporary directory used store the build artifacts passed into- or outof the build
Unless _keepTempDirs
is True
clean up the build directories after the actions
returns - even if the action throws a runtime exception.
Since: 0.5.65
type BuildInfoReader = Reader BuildInfo Source #
Type alias for a BuildInfo
Reader
Since: 0.5.65
isInteractive :: Member BuildInfoReader e => Eff e Bool Source #
Ask whether stdin
of the B9
process should be redirected to the
external commands executed during the build.
Since: 2.0.0