|
Bug in users manual, 6.4.2, section on pattern guards: msg#00071lang.haskell.glasgow.bugs
One example given in this discussion is: clunky env var1 var1 = case lookup env var1 of Nothing -> fail Just val1 -> case lookup env var2 of Nothing -> fail Just val2 -> val1 + val2 where fail = val1 + val2 this needs to be fixed to: clunky env var1 var1 = case lookup env var1 of Nothing -> fail Just val1 -> case lookup env var2 of Nothing -> fail Just val2 -> val1 + val2 where fail = var1 + var2 <<<< (Added for emphasis) I didn't see it myself on the first readthrough, but I was comparing structure between two examples and noticed the discrepency. Let's fix it for correctness' sake. _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@xxxxxxxxxxx http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Bug in GHC 6.4.1 and 6.4.2, Fritz Henglein |
|---|---|
| Next by Date: | compiler crash under MacOS X, Joerg van den Hoff |
| Previous by Thread: | Bug in GHC 6.4.1 and 6.4.2, Fritz Henglein |
| Next by Thread: | Re: Bug in users manual, 6.4.2, section on pattern guards, Simon Marlow |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |