
What you posted is the format for data declarations, not newtypes. Newtypes
are required to have exactly one constructor:
newtype [context =>] simpletype = newconstr [deriving]
Adam
On Fri, Aug 12, 2016 at 4:43 PM, James Brown
In the Haskell report 2010, a data declaration has the format of:
https://lh3.googleusercontent.com/-G-z92n-50B0/V63XKCCrJDI/AAAAAAAAAGA/w-Zdi...
For a new type, there could be zero or more data constructors. What's the use case for a new type that has zero data constructor?
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.