seq as type class method

Simon Peyton-Jones simonpj at
Fri Nov 6 05:38:27 EST 2009

|    -- | This makes GHC's optimiser happier; it sometimes produces really bad
|    -- code for single-method dictionaries
|    --
|    unlifted_dummy :: a
|    unlifted_dummy = error "unlifted_dummy"

If you have such cases, please please boil it down and file it as a bug.  We should get *better* code not worse for single-method dictionaries.


More information about the Libraries mailing list