diff options
Diffstat (limited to 'src/Map.hs')
-rw-r--r-- | src/Map.hs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -18,6 +18,9 @@ import Data.FiniteMap type Map k a = FiniteMap k a +instance Functor (FiniteMap k) where + fmap f = mapFM (const f) + member :: Ord k => k -> Map k a -> Bool member = elemFM |