> Using GHC Interactive, version 5.02: > > Prelude> x where x = 5 > <interactive>:1: parse error on input `where' > > let works fine: > > Prelude> let x = 5 in x > 5
'where' clauses aren't allowed on an arbitrary expression. They are
allowed as part of a declaration only - see the 'rhs' production in the
Haskell grammar.
Cheers,
Simon
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
