[Haskell-cafe] Function Precedence

jerzy.karczmarczuk at info.unicaen.fr jerzy.karczmarczuk at info.unicaen.fr
Tue Apr 1 07:35:18 EDT 2008


Paul Stanley writes: 

> Hi
> If
> f x = x
> and
> g y = y
> then
> f g x
> returns an error because f takes only one argument. Why can't we have 
> function application implemented outwardly (inside-out)....
etc. 

Paul, 

There were already some answers, but it seems that people did not react to
the statement that f g x fails. It doesn't, in normal order everything
should go smoothly, f g 5 returns 5 = (f g) 5 = g 5, unless I am
terribly mistaken...
Where did you see an error? 

Jerzy Karczmarczuk 




More information about the Haskell-Cafe mailing list