
12 Feb
2008
12 Feb
'08
10:15 a.m.
"Richard A. O'Keefe"
On the subject of data types, I've recently seen Haskell code using data Foo ... = Foo { ... } where I would have used newtype instead of data. When is it a good idea to avoid newtype?
When the code was written before newtype was introduced into the language? Also when { ... } is not a single type. -- Jón Fairbairn Jon.Fairbairn@cl.cam.ac.uk