What are the pro’s/con’s of this vs using the StrictData pragma?
Not exactly what the author is looking for, but class NFData from the deepseq package allows one to fully evaluate a thunk.
NFData
deepseq
I believe the author wants to be able to statically tell apart strict and non-strict data in order to avoid mixing them accidentally.
What are the pro’s/con’s of this vs using the StrictData pragma?
Not exactly what the author is looking for, but class
NFData
from thedeepseq
package allows one to fully evaluate a thunk.I believe the author wants to be able to statically tell apart strict and non-strict data in order to avoid mixing them accidentally.