Re: Bug in users manual, 6.4.2, section on pattern guards

2006-07-21 Thread Simon Marlow
Matthew Cox wrote: 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

Bug in users manual, 6.4.2, section on pattern guards

2006-07-20 Thread Matthew Cox
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