seq as a class method

Tomasz Zielonka tomasz.zielonka at
Thu Mar 30 15:23:00 EST 2006

On Wed, Mar 29, 2006 at 05:58:24PM +0100, Jon Fairbairn wrote:
> Or do what I suggested in
> <26869.1143633002 at calligramme.charmers> and make seq a
> pragma.  It really doesn't matter that pragmas in C are
> optional: we don't have to follow that.

Would that really change that much. Anyone who likes the old
seq function (less characters to type than with pragma) will
be able to define it:

    seq a b = {-# SEQ a #-} b

Perhaps if you allowed syntax for forcing many expressions
people would be more willing to use it:

    {-# SEQ a, b, c, d #-} e

Best regards

More information about the Haskell-prime mailing list