Avoid strictness in accumulator for unpackFoldr
authorDon Stewart <dons@cse.unsw.edu.au>
Mon, 3 Jul 2006 09:18:06 +0000 (09:18 +0000)
committerDon Stewart <dons@cse.unsw.edu.au>
Mon, 3 Jul 2006 09:18:06 +0000 (09:18 +0000)
commitdcf26b3c66554e062278dafc76aa2ee5bf878a75
tree469373b22d0fdb119773ee5a975ba1dd3fea5c76
parenta32ea2deb141dce3b45caa9c4479a88d9de8386f
Avoid strictness in accumulator for unpackFoldr

The seq on the accumulator for unpackFoldr will break in the presence of
head/build rewrite rules. The empty list case will be forced, producing
an exception. This is a known issue with seq and rewrite rules that we
just stumbled on to.
Data/ByteString.hs