Difference between `data` and `newtype` in Haskell
What is the difference when I write this? data Book = Book Int Int versus newtype Book = Book (Int, Int) — “Book Int Int” is syntactically invalid 1 Answer 1
What is the difference when I write this? data Book = Book Int Int versus newtype Book = Book (Int, Int) — “Book Int Int” is syntactically invalid 1 Answer 1