Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cache for individual IO values when we wish to memoize actions for database connection pools for example
This is inspired by https://hackage.haskell.org/package/io-memoize
Documentation
A thread-safe write-once cache. If you need more functionality,
(e.g. multiple write, cache clearing) use an MVar
instead.
type Key = Maybe [SpecializationPath] Source #
We need to cache different values to account for the fact that different values might be specialized for the same type