I'm trying to fit a where clause to some guards I'm using. I have the following

f a b
  | c > 1      = ...
  | c < 1      = ...
  | otherwise  = ...
  where c = a+b

yet I'm getting a parsing error. Is this not the correct way to combine "where" with "guards"?

-Eitan
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to