Skip to content

Commit 55a1e29

Browse files
Merge pull request #355 from saulzar/fix-looping
Fix MonoidalMap orphan Witherable instance with qualification
2 parents 1b8371b + a5bee16 commit 55a1e29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Data/AppendMap.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ import qualified Data.Map as Map (showTree, showTreeWith)
3232
#endif
3333
import qualified Data.Witherable as W
3434
import Data.Map.Monoidal
35+
import qualified Data.Map.Monoidal as MonoidalMap
36+
3537

3638
{-# DEPRECATED AppendMap "Use 'MonoidalMap' instead" #-}
3739
-- | AppendMap is a synonym for 'Data.Map.Monoidal.MonoidalMap'
@@ -48,7 +50,7 @@ pattern AppendMap m = MonoidalMap m
4850

4951
#if !MIN_VERSION_witherable(0,3,2)
5052
instance W.Filterable (MonoidalMap k) where
51-
mapMaybe = W.mapMaybe
53+
mapMaybe = MonoidalMap.mapMaybe
5254
#endif
5355

5456
-- | Deletes a key, returning 'Nothing' if the result is empty.

0 commit comments

Comments
 (0)