generic-deepseq: Generic deep evaluation of data structures
This package provides a
deepseq function analogous to
seq, except that it
traverses the entire data structure, evaluating it fully, and not just up to
head normal form.
Using lists as an example:
> [1,2,undefined] `seq` 3 3
> [1,2,undefined] `deepseq` 3 *** Exception: Prelude.undefined
deepseq package, this implementation is based on the
GHC.Generics framework as found in GHC >= 7.2, so that it can generate
instances automatically for any datatype that has a
without further code.
data MyType = MyType String Int (Maybe Double) deriving Generic instance DeepSeq MyType
Changes in version 22.214.171.124:
Vastly improved performance. As a consequence of these changes, the member function of the DeepSeq class is now
rnf, instead of
New instances for functions, Ratio and Complex types.
Changes in version 126.96.36.199:
Fix the U1 and V1 instances.
|Versions [faq]||188.8.131.52, 184.108.40.206, 220.127.116.11, 18.104.22.168|
|Dependencies||base (>=4.4 && <5), ghc-prim (>=0.2) [details]|
|Copyright||2012, Maxime Henrion|
|Maintainer||Maxime Henrion <email@example.com>|
|Revised||Revision 1 made by AdamBergmark at Sat May 9 12:17:29 UTC 2015|
|Source repo||head: hg clone http://bitbucket.org/mumux/generic-deepseq/|
|Uploaded||by MaximeHenrion at Sat Feb 25 11:00:47 UTC 2012|
|Downloads||2583 total (57 in the last 30 days)|
|Rating||(no votes yet) [estimated by rule of succession]|
Docs uploaded by user
Build status unknown [no reports yet]
- generic-deepseq-22.214.171.124.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
For package maintainers and hackage trustees