| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Dib.Stage
Description
Module exposing the Stage type and related type wrappers, along with a
convenience emptyStage.
- data Stage = Stage Text InputTransformer DepScanner [Text] StageFunc
- type InputTransformer = [SrcTransform] -> [SrcTransform]
- type DepScanner = SrcTransform -> IO SrcTransform
- type StageFunc = SrcTransform -> IO (Either SrcTransform Text)
- emptyStage :: Stage
Documentation
Type describing a build stage.
Takes a name, an InputTransformer, DepScanner, additional dependencies, and the builder function.
Constructors
| Stage Text InputTransformer DepScanner [Text] StageFunc |
type InputTransformer = [SrcTransform] -> [SrcTransform] Source #
Type wrapper for functions transforming a list of SrcTransforms into a
list of SrcTransforms suitable for passing into the DepScanner.
type DepScanner = SrcTransform -> IO SrcTransform Source #
Type wrapper for a function that takes a SrcTransform and produces
a SrcTransform with dependencies included in the input.
type StageFunc = SrcTransform -> IO (Either SrcTransform Text) Source #
Type wrapper for a function that given a SrcTransform, produces either
a SrcTransform containing the output files in the input, or an error.
emptyStage :: Stage Source #
A stage that does nothing and just passes the SrcTransforms through.