[Haskell-cafe] Re: [Haskell-beginners] map question

minh thu noteed at gmail.com
Tue Oct 20 02:46:22 EDT 2009

> [snip]
> Not a hack, a solution. A consistent one. Look:
>  (`foldl` 0)
>  (`-` 2)
> Don't they look exactly the same?
> [snip]

These look the same too (and *are* consistent):
(f a b)
(+ a b)

But it's not Haskell..

IMO conflating binary minus and unary minus is not consistent.

Something I wonder from time to time if it would be a good thing or
not is to allow
  a `f g` b
to mean
  f g a b
(so map (`f g` b) as would legal too).


More information about the Haskell-Cafe mailing list