[Haskell-cafe] Re: Datatypes - Haskell

Richard A. O'Keefe ok at cs.otago.ac.nz
Mon Feb 11 19:23:07 EST 2008


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?



More information about the Haskell-Cafe mailing list