translating gofer into lambda expressions

hello

I don't really understand how to translate Gofer code into lambda

expressions and am wondering if anyone can help.

here are some examples:

plus a b = a + b

sumsquares x y = (square x) + (square y) where square a = a * a

sum n = if n == 1 then 1 else n + sum (n-1)

any pointers or help would be much appreciated

Gareth

<><