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

Leave a Reply

Your email address will not be published. Required fields are marked *