Tag: type systems

Haskell中`data`和`newtype`之间的区别

我写这个有什么不同? data Book = Book Int Int newtype Book = Book(Int, Int) — "Book Int Int" is syntactically invalid