summaryrefslogtreecommitdiff
path: root/libraries/base/Data/Traversable.hs
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2014-09-18 23:05:35 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2014-09-18 23:07:35 +0200
commiteae19112462fe77a3f1298bff12b409b205a581d (patch)
tree1cf7c44ad1e064a34b0eebb74a996e58ad3b440f /libraries/base/Data/Traversable.hs
parent8b9083655f34120b47fe407123272e0687e0bd60 (diff)
downloadhaskell-eae19112462fe77a3f1298bff12b409b205a581d.tar.gz
Move `when` to GHC.Base
This allows several modules to avoid importing Control.Monad and thus break import cycles that manifest themselves when implementing #9586 Reviewed By: austin, ekmett Differential Revision: https://phabricator.haskell.org/D222
Diffstat (limited to 'libraries/base/Data/Traversable.hs')
-rw-r--r--libraries/base/Data/Traversable.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/libraries/base/Data/Traversable.hs b/libraries/base/Data/Traversable.hs
index 19e9d477e6..227b6ba038 100644
--- a/libraries/base/Data/Traversable.hs
+++ b/libraries/base/Data/Traversable.hs
@@ -52,7 +52,6 @@ module Data.Traversable (
) where
import Control.Applicative
-import Control.Monad ( Monad(..) )
import qualified Control.Monad
import Data.Either
import Data.Foldable ( Foldable )
@@ -62,7 +61,7 @@ import Data.Monoid ( Monoid )
import Data.Proxy
import GHC.Arr
-import GHC.Base ( ($), (.), id, flip )
+import GHC.Base ( ($), (.), Monad(..), id, flip )
import qualified GHC.List as List
-- | Functors representing data structures that can be traversed from