filepather: Computations that depend on a file path, and tracked build steps

FilePather f a is a computation that depends on the file path being
operated on:
newtype FilePather f a = FilePather (FilePath -> f a)
It is isomorphic to ReaderT FilePath f a, with the same instances, and
combinators to run one FilePather on the output of another, and to apply
rules to every file in a directory.
Tracked f a is a named build step, or several, that records the files it
makes, with the steps that made them, so that a chain of build steps that
would go round in a cycle is stopped before it does:
newtype Tracked f a = Tracked (FilePather (ReaderT Trail (ExceptT Cycle f)) (Outputs, a))
[Skip to Readme]
Modules
[Index] [Quick Jump]
Flags
Manual Flags
| Name | Description | Default |
|---|---|---|
| doctest | Build the doctest test suite, which runs doctest through cabal. It is enabled in cabal.project, and disabled by default so that builds from the source distribution do not need cabal or doctest at test time. | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- filepather-0.7.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.3.0, 0.4.0, 0.4.1, 0.5, 0.5.1, 0.5.2, 0.5.3, 0.5.4, 0.5.5, 0.6.0, 0.6.1, 0.7.0.0 |
|---|---|
| Change log | changelog.md |
| Dependencies | adjunctions (>=4.4.2 && <5), base (>=4.18 && <5), contravariant (>=1.5.5 && <2), deepseq (>=1.4.8.1 && <2), directory (>=1.3.8.5 && <2), distributive (>=0.6.2.1 && <1), either-n (>=0.1 && <0.2), exitcode (>=0.3.0.1 && <0.4), filepath (>=1.4.301.0 && <1.6), lens (>=5.2.1 && <6), mtl (>=2.3.1 && <2.4), selective (>=0.7 && <1), semigroupoids (>=6.0.0.1 && <7), transformers (>=0.6.1 && <0.7), witherable (>=0.4.2 && <1) [details] |
| Tested with | ghc ==9.14.1, ghc ==9.12.4, ghc ==9.10.3, ghc ==9.8.4, ghc ==9.6.7 |
| License | BSD-3-Clause |
| Copyright | Copyright (c) 2021-2026 Tony Morris |
| Author | Tony Morris <ʇǝu˙sıɹɹoɯʇ@ןןǝʞsɐɥ> <dibblego> |
| Maintainer | Tony Morris <ʇǝu˙sıɹɹoɯʇ@ןןǝʞsɐɥ> <dibblego> |
| Uploaded | by TonyMorris at 2026-10-20T03:35:30Z |
| Category | System |
| Home page | https://gitlab.com/tonymorris/document-build |
| Bug tracker | https://gitlab.com/tonymorris/document-build/issues |
| Source repo | head: git clone https://gitlab.com/tonymorris/document-build.git(filepather) |
| Distributions | |
| Reverse Dependencies | 3 direct, 0 indirect [details] |
| Downloads | 1855 total (25 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs uploaded by user Build status unknown [no reports yet] |