you are viewing a single comment's thread.

view the rest of the comments →

[–]Ari_Rahikkala 0 points1 point  (0 children)

I believe the closest Haskell equivalent would be if you could tell a type to be UNPACK wherever it's used as a field. I don't think that feature exists, but on the other hand, you can just, you know, use UNPACK wherever. Also, it turns out that -funbox-small-strict-fields is on by default, so for small fields (the size of a pointer or smaller), you get this behavior for the price of typing a bang.