Skip to content

a simple library to cache a single IO action with timeout

License

Notifications You must be signed in to change notification settings

bellroy/haskell-cached-io

 
 

Repository files navigation

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

About

a simple library to cache a single IO action with timeout

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Haskell 93.8%
  • Nix 6.2%