About

Metadata

  • Last updated , by MikeLedger
  • License Apache-2.0
  • Categories Development
  • Maintained by: Bellroy Tech Team <haskell@bellroy.com>

  • Lottery factor: 5

Links

Installation

Tested Compilers

  1. 9.12.1
  2. 9.10.1
  3. 9.8.2
  4. 9.6.6
  5. 9.4.5
  6. 9.2.4
  7. 9.0.2
  8. 8.10.7

Package Flags

Use the -f option with cabal commands to enable flags

    developer (off by default)

    compile with -Werror to make warnings fatal

Readme

cached-io: cache a single IO action

Sometimes you have an action that does something really expensive whose results don't change that much. This is a simple library that lets you cache the output of that expensive action for a developer-specified length of time.

test/test-cachedIO.hs shows a very basic usage example.

Developing this library

All standardised tooling is provided by flake.nix.

nix develop
Formatting code
To format use
*.cabal cabal-fmt (cabal-fmt --inplace *.cabal)
*.nix nixpkgs-fmt (nixpkgs-fmt *.nix)

We have not yet chosen a formatter for Haskell source. For now, try to follow the style of surrounding code.

CI

The GitHub Actions CI workflow for this repo is generated by haskell-ci:

haskell-ci regenerate