On Thu, Oct 16, 2008 at 12:53 AM, Bulat Ziganshin
<[EMAIL PROTECTED]> wrote:
> data SomeStruct = SomeStruct
You can even go one step further and do
data SomeStruct
which will prevent you from accidentally trying to the dummy
constructor. However, you'll need
{-# LANGUAGE EmptyDataDecls #-}
or the equivalent compiler flag to make it work, since it's not
Haskell 98 syntax.
Stuart
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe