You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's no obvious reason to delay the lookup to the use site (which keeps the entire HashMap live). Why not use something like this?
lookup (Config root BaseConfig{..}) name =do
mp <- readIORef cfgMap
let result = convert =<<H.lookup (root `T.append` name) mp
evaluate result
return result
The text was updated successfully, but these errors were encountered:
Currently,
I'd have expected
lookup
is also a bit weird:There's no obvious reason to delay the
lookup
to the use site (which keeps the entireHashMap
live). Why not use something like this?The text was updated successfully, but these errors were encountered: