Re: [Haskell] Announce: ~Haskell 2011

20 Jan
2011
20 Jan
'11
8:26 a.m.
(a) we wish to accept the NoDatatypeContexts proposal http://hackage.haskell.org/trac/haskell-prime/wiki/NoDatatypeContexts
The Trac-Wiki says: "What removing the datatype contexts from a source file will do is make some previously illegal programs legal." What is an example?
As on the wiki, data Eq a => Foo a = Constr a getVal :: Foo a -> a getVal (Constr x) = x would previously have been rejected. Once the compiler forces the user to remove the Eq a => context on the datatype, the rest of the program will be accepted. Regards, Malcolm
5234
Age (days ago)
5234
Last active (days ago)
0 comments
1 participants
participants (1)
-
Malcolm Wallace