deepseq

Deep evaluation of data structures

Version on this page:1.5.0.0
LTS Haskell 23.5:1.5.1.0
Stackage Nightly 2025-01-23:1.5.0.0
Latest on Hackage:1.6.0.0

See all snapshots deepseq appears in

BSD-3-Clause licensed
Maintained by libraries@haskell.org
This version can be pinned in stack with:deepseq-1.5.0.0@sha256:5385b345570a579e7ee5c8abfe180b7c21e608b30fbaa38274c9608e61a833ac,2227

Module documentation for 1.5.0.0

This package provides methods for fully evaluating data structures ("deep evaluation"). Deep evaluation is often used for adding strictness to a program, e.g. in order to force pending exceptions, remove space leaks, or force lazy I/O to happen. It is also useful in parallel programs, to ensure pending work does not migrate to the wrong thread.

The primary use of this package is via the deepseq function, a "deep" version of seq. It is implemented on top of an NFData typeclass ("Normal Form Data", data structures with no unevaluated components) which defines strategies for fully evaluating different data types. See module documentation in Control.DeepSeq for more details.

Changes