Documentation for implicit parameters
Alastair Reid
alastair at reid-consulting-uk.ltd.uk
Wed Sep 11 15:45:11 EDT 2002
We normally expect these forms to be equivalent:
let <bindings> in e
e where <bindings>
As I was eliminating uses of with bindings, I found that this was not
true for implicit parameter bindings. That is,
f x = let ?x = e in e'
is valid, but
f x = e' where ?x = e
is not.
I found this while updating old code using s/with/where/.
It would be good to document this in the user guide.
(Better yet to restore the equivalence.)
A
More information about the Glasgow-haskell-bugs
mailing list