Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 StageResult
- emptyStage :: Stage
Documentation
Type describing a build stage.
Takes a name, an InputTransformer
, DepScanner
, additional dependencies, and the builder function.
type InputTransformer = [SrcTransform] -> [SrcTransform] Source #
Type wrapper for functions transforming a list of SrcTransform
s into a
list of SrcTransform
s 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 StageResult 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 SrcTransform
s through.