[Haskell-cafe] What can be UNPACK'ed?

Olaf Klinke olf at aatal-apotheke.de
Mon Jul 31 16:10:12 UTC 2017


How is UNPACK and BangPatterns related to WHNF? I used to think that unpacking sort of forces the constructors up to the level where the bangs reside. Hence unpacking a tuple makes sense, whereas unpacking a linked list does not save much memory. 

-- Olaf


More information about the Haskell-Cafe mailing list