diff options
author | Erik de Castro Lopo <erik.decastrolopo@ambiata.com> | 2017-01-30 11:47:00 -0500 |
---|---|---|
committer | David Feuer <David.Feuer@gmail.com> | 2017-01-30 11:47:02 -0500 |
commit | d2cf5dea70acbffb6039dc5eda31c8ff03b8f43e (patch) | |
tree | 1823548797dfcf1752634747ca0ba5819957d254 /compiler/utils/FiniteMap.hs | |
parent | f60287c478a5f52bcb7e558c0995f552713772d1 (diff) | |
download | haskell-d2cf5dea70acbffb6039dc5eda31c8ff03b8f43e.tar.gz |
Fix deprecation warnings from containers
The functions that were causing warnings were deprecated in containers
0.5 and GHC is already using containers 0.5.9.1.
Test Plan: validate
Reviewers: rwbarton, bgamari, hsyl20, austin, dfeuer
Reviewed By: dfeuer
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D3036
Diffstat (limited to 'compiler/utils/FiniteMap.hs')
-rw-r--r-- | compiler/utils/FiniteMap.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/utils/FiniteMap.hs b/compiler/utils/FiniteMap.hs index dccfca10a9..cb6e5573e8 100644 --- a/compiler/utils/FiniteMap.hs +++ b/compiler/utils/FiniteMap.hs @@ -24,6 +24,6 @@ deleteList :: Ord key => [key] -> Map key elt -> Map key elt deleteList ks m = foldl (flip Map.delete) m ks foldRight :: (elt -> a -> a) -> a -> Map key elt -> a -foldRight = Map.fold +foldRight = Map.foldr foldRightWithKey :: (key -> elt -> a -> a) -> a -> Map key elt -> a foldRightWithKey = Map.foldrWithKey |