[Haskell-cafe] newbie problems
mark at ixod.org
Sat Jul 3 10:55:47 EDT 2004
On Sat, 3 Jul 2004, paolo veronelli wrote:
> I'd like to have a simple definition of the meanings of 'type' and 'data'
> and maybe a clarifing example on their use.
The way I see it, you use "type" for genuine synonyms where you don't care
about the distinction, "newtype" where you want to make a separate type
with a single constructor, and "data" where you want to make a separate
type with multiple constructors. My memory might be failing, though.
More information about the Haskell-Cafe