Skip to content
Snippets Groups Projects
Commit e78f34e8 authored by Simon Marlow's avatar Simon Marlow
Browse files

make this buildable with GHC 6.2.x

parent f3033d98
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,8 @@ unions :: Ord k => [Map k a] -> Map k a
unions = foldl (flip plusFM) emptyFM
difference :: Ord k => Map k a -> Map k b -> Map k a
difference m1 m2 = delListFromFM m1 (elems m2)
difference m1 m2 = delListFromFM m1 (keys m2)
-- minusFM wasn't polymorphic enough in GHC 6.2.x
elems :: Map k a -> [a]
elems = eltsFM
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment