[Haskell-beginners] Empty type

KwangYul Seo skyul at company100.com
Fri Oct 25 03:44:06 UTC 2013


Hello,

It seems there are three different ways to declare an empty type in Haskell.

http://www.haskell.org/haskellwiki/Empty_type

1) data E0 = E0

2) newtype Void = Void Void

3) data Void

I'd like to know how the second trick works. Is it possible to create a new
type from itself? How should I interpret this?

Thanks,
Kwang Yul Seo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20131025/a093097a/attachment.html>


More information about the Beginners mailing list