[Haskell-cafe] map and list comprehensions

Paul Hudak paul.hudak at yale.edu
Mon Feb 6 10:52:12 EST 2006


John Peterson wrote:
> I think the point was that all syntax (like list comprehensions or
> pattern matching) in Haskell is tied directly to the Prelude.  So [ f
> x ...] is ALWAYS using the Prelude definitions of things while "map"
> could be hidden and redefined.

Yes, of course.  I was implicitly assuming that we were talking about 
Prelude's map.

 > The inability to change the meaning of
> constructs expanded from syntax as considered a bug by some, a feature
> by others.  And I don't rember where Paul stood on this ...

It has always seemed to me that there should be a way to define 
something as syntactic expansion into things that cannot be redefined, 
otherwise the language definition becomes vague.

   -Paul


More information about the Haskell-Cafe mailing list