
15 Oct
2008
15 Oct
'08
10:56 a.m.
On Thu, Oct 16, 2008 at 12:53 AM, Bulat Ziganshin
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