deepseq-generics

GHC.Generics-based Control.DeepSeq.rnf implementation

https://github.com/haskell-hvr/deepseq-generics

Version on this page:0.2.0.0@rev:9
LTS Haskell 22.39:0.2.0.0@rev:10
Stackage Nightly 2024-10-31:0.2.0.0@rev:10
Latest on Hackage:0.2.0.0@rev:10

See all snapshots deepseq-generics appears in

BSD-3-Clause licensed by Herbert Valerio Riedel
Maintained by https://github.com/haskell-hvr
This version can be pinned in stack with:deepseq-generics-0.2.0.0@sha256:530c90ed33d3d01c42bff4e29607b5ed8de09cdebd23baec3c3aa9a7901883f3,2874

Module documentation for 0.2.0.0

Depends on 3 packages(full list with versions):
Used by 5 packages in lts-20.24(full list with versions):

This package provides a GHC.Generics-based Control.DeepSeq.Generics.genericRnf function which can be used for providing a rnf implementation. See the documentation for the genericRnf function in the Control.DeepSeq.Generics module to get started.

The original idea was pioneered in the generic-deepseq package (see http://www.haskell.org/pipermail/haskell-cafe/2012-February/099551.html for more information).

This package differs from the generic-deepseq package by working in combination with the existing deepseq package as opposed to defining a conflicting drop-in replacement for deepseq's Control.DeepSeq module.

Note: The ability to auto-derive via GHC.Generics has been merged into deepseq-1.4.0.0. This package is now still useful for writing code that's also compatible with older deepseq versions not yet providing GHC.Generics-support.

Changes

0.2.0.0 January 2016

  • Add support for GHC 8.0
  • Remove re-exports from deepseq:Control.DeepSeq
  • Synchronise implementation to deepseq-1.4.0.0’s code

0.1.1.2 December 2014

  • Add support for GHC 7.10 and deepseq-1.4.0.0

0.1.1.1 November 2013

  • Add support for GHC 7.8

0.1.1.0 September 2013

  • New Function Control.DeepSeq.Generics.genericRnfV1

0.1.0.0 September 2012

  • Initial Release