1 ความแตกต่างระหว่าง `data 'และ` newtype` ใน Haskell เมื่อฉันเขียนสิ่งนี้แตกต่างกันอย่างไร data Book = Book Int Int กับ newtype Book = Book (Int, Int) -- "Book Int Int" is syntactically invalid 191 haskell types type-systems newtype