aboutsummaryrefslogtreecommitdiff
path: root/src/Map.hs
diff options
context:
space:
mode:
authorross <unknown>2005-02-04 13:36:06 +0000
committerross <unknown>2005-02-04 13:36:06 +0000
commit26b8ddf7c308a8d0e0ff93c64710196f2966bb3a (patch)
tree9905d4033d248d52e8b77730ee3346134e53da58 /src/Map.hs
parentfc2cfd2760f995b796936cb23d86fd7dbc6628dd (diff)
[haddock @ 2005-02-04 13:36:05 by ross]
sort lists of instances by - arity of the type constructors (so higher-kinded instances come first) - name of the class - argument types
Diffstat (limited to 'src/Map.hs')
-rw-r--r--src/Map.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Map.hs b/src/Map.hs
index 8e59f83e..7d4c75df 100644
--- a/src/Map.hs
+++ b/src/Map.hs
@@ -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