Strict getContents

Henning Thielemann lemming at henning-thielemann.de
Wed Sep 11 18:52:35 UTC 2019


On Wed, 11 Sep 2019, Li-yao Xia wrote:

> The easiest way to get a strict alternative seems to be to explicitly 
> force the list, for example using ```length contents `seq` pure ()```, 
> but that's far from an obvious solution.

I am not sure, whether this works reliably. Evaluating the length of 
'contents' only generates the skeleton of the list but not immediately the 
element values. A cleaner way would be to use 'deepseq'.


More information about the Libraries mailing list