I must compile on a recent version of Haskell a software written for a previous version of the standard libraries. The code assumes Data.Map.lookup
has type:
lookup :: (Monad m, Ord k) => k -> Map k a -> m a
as it was the case with e.g. GHC 6.8.1/containers 0.1.0.0., but since (at least) GHC 6.10.1/containers 0.2.0.0 Data.Map.lookup
has type:
lookup :: Ord k => k -> Map k a -> Maybe a
Since I don't know much of Haskell I'm looking for a workaround or an equivalent function in the current libraries. Can anyone help me?