What is the significance of algebraic datatypes with zero constructors?

后端 未结 4 1212
离开以前
离开以前 2020-12-19 10:31

This passage, which unfortunately lacks references, about the development of ADTs in Haskell, from A History of Haskell: Being Lazy With Class, section 5.1:

4条回答
  •  醉话见心
    2020-12-19 11:09

    Types with no constructors are called phantom types. See the page in the Haskell wiki.

提交回复
热议问题