Commit 2ca8cf69 authored by Ben Gamari's avatar Ben Gamari 🐢

Add Functor Bag instance

parent b6204f70
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment