[Haskell-cafe] Problem in code

Jenny678 mestor1 at gmx.de
Tue Jun 6 10:50:19 EDT 2006

I can not find the problem, I use WinHugs and shows me(Syntax error in input
(unexpected keyword "where"). 
here is my code:

f :: (Float,Float) -> Float
f (x,y) = (a(x,y) + 4) * (b(x,y) + 3)
a :: (Float,Float) -> Float
a(x,y) = (x + y)*2
b :: (Float,Float) -> Float
b(x,y) = (y - x)*5

How can I define this code with let in?
Thanks for any help.
View this message in context: http://www.nabble.com/Problem-in-code-t1742233.html#a4734684
Sent from the Haskell - Haskell-Cafe forum at Nabble.com.

More information about the Haskell-Cafe mailing list