
14 May
2008
14 May
'08
6:23 p.m.
Don Stewart wrote:
ndmitchell:
2. Does anybody know how to actually read GHC's Core output anyway?
There is one different from standard Haskell I am aware of. In Core, case x of _ -> 1 will evaluate x, in Haskell it won't. Other than that, its just Haskell, but without pattern matching and only cases - hence the rather high number of cases.
Well, 'let's too, which bind either unlifted or lifted values.
If they're binding lifted things, that's a thunk being allocated.
See, somebody needs to write all this down - in language comprehensible to people who don't already know what an "unlifed value" is. ;-)