Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chaitanya Koparkar
GHC
Commits
6f259e0e
Commit
6f259e0e
authored
Sep 03, 2010
by
Simon Marlow
Browse files
update for containers-0.4
parent
33167a5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
compiler/ghc.cabal.in
View file @
6f259e0e
...
...
@@ -68,7 +68,7 @@ Library
process >= 1 && < 1.1,
bytestring >= 0.9 && < 0.10,
old-time >= 1 && < 1.1,
containers >= 0.1 && < 0.
4
,
containers >= 0.1 && < 0.
5
,
array >= 0.1 && < 0.4
Build-Depends: filepath >= 1 && < 1.3
...
...
compiler/utils/FiniteMap.lhs
View file @
6f259e0e
...
...
@@ -170,7 +170,11 @@ delListFromFM = foldl delFromFM
plusFM (FM x) (FM y) = FM (M.union y x)
plusFM_C f (FM x) (FM y) = FM (M.unionWith f x y)
minusFM (FM x) (FM y) = FM (M.difference x y)
#if MIN_VERSION_containers(0,4,0)
foldFM k z (FM m) = M.foldrWithKey k z m
#else
foldFM k z (FM m) = M.foldWithKey k z m
#endif
intersectFM (FM x) (FM y) = FM (M.intersection x y)
intersectFM_C f (FM x) (FM y) = FM (M.intersectionWith f x y)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment