
I just joined this list after finally obtaining an i386 machine primarily for the purpose of running GHC (I ssh/ftp to it from my Mac). A quick question: is there an option to allow empty datatypes in GHC 5.00? I couldn't see one in the manual. They are useful for type parameterisation, for instance: data Zero; data Succ n; Unfortunately this is contrary to the Haskell Report. Nevertheless, Hugs allows it. But GHC, apparently, does not. -- Ashley Yakeley, Seattle WA

Ashley Yakeley
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 reid@cs.utah.edu http://www.cs.utah.edu/~reid/
participants (2)
-
Alastair David Reid
-
Ashley Yakeley