[Haskell-cafe] Need an example of new type constructor with zero data constructors

James Brown james.brown5374 at gmail.com
Fri Aug 12 14:43:18 UTC 2016


In the Haskell report 2010, a data declaration has the format of:

<https://lh3.googleusercontent.com/-G-z92n-50B0/V63XKCCrJDI/AAAAAAAAAGA/w-Zdi9DaR18hX67n-OeQNkDB1iUR0IP7gCLcB/s1600/Screen%2BShot%2B2016-08-12%2Bat%2B10.03.00%2BAM.png>

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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160812/5ac6fb23/attachment.html>


More information about the Haskell-Cafe mailing list