We say that a value is weak head normal form (WHNF) if its represented by a closure corresponding to a data constructor
(83/n) Day83 #CardanoCommunity #Haskell has lifted and unlifted types
This affects how memory is used
Lets first understand this
A type is lifted if its values may take special value "undefined" (bottom)
Most types are lifted due to thunks
84/n)Day84 #CardnaoCommunity #Haskell has another concept "strictness" which affects runtime memory
A 1-arg function f is called strict, if given bottom val as arg, it returns bottom
Bottom is either "undefined" or forever loop
whether a func is strict depends on how arg is used
• • •
Missing some Tweet in this thread? You can try to
force a refresh