summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler/utils/Bag.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/utils/Bag.hs b/compiler/utils/Bag.hs
index a027db23b7..af5caadb24 100644
--- a/compiler/utils/Bag.hs
+++ b/compiler/utils/Bag.hs
@@ -330,5 +330,8 @@ instance Data a => Data (Bag a) where
dataTypeOf _ = mkNoRepType "Bag"
dataCast1 x = gcast1 x
+instance Functor Bag where
+ fmap = mapBag
+
instance Foldable.Foldable Bag where
foldr = foldrBag