[Haskell-cafe] Newbie Question on type constructors

Henning Thielemann iakd0 at clusterf.urz.uni-halle.de
Mon Nov 1 13:27:31 EST 2004

On Mon, 1 Nov 2004, Ben Rudiak-Gould wrote:

> Paul Hudak wrote:
> > Oh, I disagree with this point of view.  Circle is certainly a value, 
> > i.e. a full-fledged function, as Brian Beckman correctly surmised.
> Interesting. I don't claim that my viewpoint is the One True Path, but I 
> don't think it's wrong, either. I know you're interested in the teaching 
> of Haskell, and the fact remains that I *was* confused by data 
> constructors when I learned Haskell, and it *did* help me to stop 
> thinking of them as functions.

When I saw 'data' the first time, it looked for me similar to C's unions,
i.e. a data structure.  Sometime later I got the point that constructors
are also functions. :-) 

More information about the Haskell-Cafe mailing list