{-# LANGUAGE CPP #-}
-- | Placeholders for missing instances of Traversable, until base catches up and adds them
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Data.Traversable.Instances where
#if !(MIN_VERSION_transformers(0,3,0))
import Control.Monad.Trans.Identity
import Data.Foldable
import Data.Traversable
instance Foldable m =>Foldable (IdentityTm) where
foldMapf = foldMapf.runIdentityT
instance Traversable m =>Traversable (IdentityTm) where
traversef = fmapIdentityT.traversef.runIdentityT
#endif