You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It uses TH to allow making the whnf is nf assertion you mention, which the library calls deep strictness.
In terms of Generics, @bgamari wrote up some code a while ago that does something like this, and I modified it to work with (mutual) recursive types (the trick is you have to treat this as an inductive proof): https://gist.github.com/TeofilC/a85da6a388ec94e8acb1519886fbd2a7
See some earlier discussion here: #3
In the end, the trickiness of doing this with Generics led me towards TH.
I propose an
NFData
method (by some name)Then we can have, for example,
This can avoid a bunch of unnecessary traversals.
The text was updated successfully, but these errors were encountered: