Ashley Yakeley <[EMAIL PROTECTED]> writes:

>  data Zero; data Succ n;

> Unfortunately this is contrary to the Haskell
> Report. Nevertheless, Hugs allows it. But GHC, apparently,
> does not.

Note that Hugs allows it principally so that we can write the following
in the Prelude:

  data Float
  data Double
  data Int
  data Char 
  ...

That it's useful for other things is pretty much incidental.

-- 
Alastair Reid        [EMAIL PROTECTED]        http://www.cs.utah.edu/~reid/

_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to