Could somebody explain me how to use "let" and "where" properly ?
Consider the script:
f x = let y = x+2
z = ...
u = ...
g v = ...
< x,y,z,u,v used in the body >
in g x
------------------------------------------------------------------
When g is some large but auxiliary and "local" script, it is
better to write this as
f' x = let y = x+2
z = ...
u = ...
in g x
where
g v = ...
< x,y,z,u,v used in the body >
But Haskell reports "unknown value y" ...
What is the way-out ?
Thanks in advance.
Sergey Mechveliani. [EMAIL PROTECTED]