Newsgroups: fa.haskell
From: Benjamin Franksen <benjamin.frank...@bessy.de>
Date: Thu, 11 Jan 2007 21:07:35 UTC
Local: Thurs, Jan 11 2007 4:07 pm
Subject: [Haskell-cafe] Re: Monad Set via GADT
Jim Apple wrote: http://article.gmane.org/gmane.comp.lang.haskell.cvs.all/29458/match=... > On 1/3/07, Roberto Zunino <zun...@di.unipi.it> wrote: >> 1) Why the first version did not typececk? > 1) Class constraints can't be used on pattern matching. They ARE > restrictive on construction, however. This is arguably bug in the > Haskell standard. It is fixed in GHC HEAD for datatypes declared in > the GADT way, so as not to break H98 code: To quote from there: "I think this is stupid, but it's what H98 says." Maybe it is time to consider it deprecated to follow the Haskell 98 I hope this will be handled in a better way with Haskell'. It should be Cheers _______________________________________________ You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||