[Haskell-beginners] Meaning of '!' in record defintion? UNPACK?

Colin Paul Adams colin at colina.demon.co.uk
Thu Feb 26 06:07:31 EST 2009

>>>>> "Thomas" == Thomas Davie <tom.davie at gmail.com> writes:

    Thomas> The {-# UNPACK #-} tells the compiler that it can unpack
    Thomas> the Int – meaning that a Position will be neatly packed
    Thomas> into 12 bytes.

What would be the difference if there was no UNPACK pragma?
Colin Adams
Preston Lancashire

More information about the Beginners mailing list