
10 Oct
2008
10 Oct
'08
6:29 p.m.
Duncan Coutts wrote:
Ok, lets look at hslogger:
src/System/Log/Logger.hs:333:20: Couldn't match expected type `Maybe Logger' against inferred type `IO Logger' In a stmt of a 'do' expression: result <- Map.lookup lname newlt
Ah ok, so that's the change in Map.lookup to return Maybe rather than in any monad. So that's an easy source code fix:
result <- maybe (fail "Arrgh!") return (Map.lookup lname newlt)
There are actually more instances than this in the code, but I already have fixed it in my git tree. I guess it's time to make a release. -- John
Note of course this will also work with the previous implementation of lookup.
Duncan