The memoize package
This library provides a type class Memoizable for memoizing functions, along with instances for a variety of argument types. It includes a Template Haskell function for deriving Memoizable instances for arbitrary algebraic datatypes.
The library constructs pure memo caches without the use of unsafePerformIO. This technique relies on implementation assumptions that, while not guaranteed by the semantics of Haskell, appear to be true.
Properties
| Versions | 0.1, 0.2, 0.3 |
|---|---|
| Dependencies | base (≥3 & <5), template-haskell (≥2) |
| License | BSD3 |
| Author | Jesse A. Tov <tov@ccs.neu.edu> |
| Maintainer | tov@ccs.neu.edu |
| Stability | experimental |
| Category | Data |
| Source repository | git clone git://github.com/tov/memoize.git |
| Upload date | Mon Mar 12 13:31:34 UTC 2012 |
| Uploaded by | JesseTov |
| Built on | ghc-7.4 |
Modules
- Data
- Function
Downloads
- memoize-0.3.tar.gz (Cabal source package)
- package description (included in the package)