composewell / streamly

High performance, concurrent functional programming abstractions
https://streamly.composewell.com
Other
856 stars 64 forks source link

Add test-suite for Fold finalization consistency #2609

Open adithyaov opened 9 months ago

adithyaov commented 9 months ago
  1. We need to verify that for every initial there is finalize being called.
  2. extract can be called multiple times. extract should be pure-ish

On a side note, can we make extract completely pure?

extract :: s -> b