diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2014-09-18 23:05:35 +0200 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-09-18 23:07:35 +0200 |
commit | eae19112462fe77a3f1298bff12b409b205a581d (patch) | |
tree | 1cf7c44ad1e064a34b0eebb74a996e58ad3b440f /libraries/base/Data/Traversable.hs | |
parent | 8b9083655f34120b47fe407123272e0687e0bd60 (diff) | |
download | haskell-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.hs | 3 |
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 |