Would it be possible to bring the DeepSeq library into the libraries
distributed with GHC? (I think Dean Herington is responsible for it.)
Of course it's easy enough to drop it into one's own program (I am just
about to do this) but
(1) It is fairly common to want to force deeper evaluation.
(2)
On Friday 19 July 2002 12:10, George Russell wrote:
> Would it be possible to bring the DeepSeq library into the libraries
> distributed with GHC? (I think Dean Herington is responsible for it.)
>
> Of course it's easy enough to drop it into one's own program (I am just
> about to do this) but
>
> Beeing able to derive instances of DeepSeq would be nice too.
Here is an implementation using GHC's derivable type classes.
Cheers, Ralf
ghc -c -fglasgow-exts -fgenerics -package lang Eval.lhs
> module Force
> where
> import Generics
> class Force a where
> force