diff options
author | ross <unknown> | 2005-02-04 13:36:06 +0000 |
---|---|---|
committer | ross <unknown> | 2005-02-04 13:36:06 +0000 |
commit | 26b8ddf7c308a8d0e0ff93c64710196f2966bb3a (patch) | |
tree | 9905d4033d248d52e8b77730ee3346134e53da58 /src/Map.hs | |
parent | fc2cfd2760f995b796936cb23d86fd7dbc6628dd (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.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 |