deprecate FunctorM in favour of Foldable and Traversable
authorRoss Paterson <ross@soi.city.ac.uk>
Wed, 15 Mar 2006 09:29:42 +0000 (09:29 +0000)
committerRoss Paterson <ross@soi.city.ac.uk>
Wed, 15 Mar 2006 09:29:42 +0000 (09:29 +0000)
as discussed on the libraries list.

Data/FunctorM.hs

index e0e1da4..086c374 100644 (file)
 --
 -- fmapM generalises fmap, just as mapM generalises map.
 --
+-- NOTE: This module is DEPRECATED.
+-- The classes in "Data.Foldable" and "Data.Traversable" provide a
+-- more general interface.
+--
 -----------------------------------------------------------------------------
 
-module Data.FunctorM (
-       FunctorM(..)
-  ) where
+module Data.FunctorM
+{-# DEPRECATED "Use the more general Data.Foldable and Data.Traversable instead" #-}
+  (FunctorM(..)) where
 
 import Prelude
 import Data.Array