Move `mapM` and `sequence` to GHC.Base and break import-cycles
authorHerbert Valerio Riedel <hvr@gnu.org>
Sun, 21 Sep 2014 17:14:04 +0000 (19:14 +0200)
committerHerbert Valerio Riedel <hvr@gnu.org>
Sun, 21 Sep 2014 17:14:56 +0000 (19:14 +0200)
commit5ed12810e0972b1e0d408fe1355805746c4614f9
tree93bef49c2ea5d5e2d67cb1684e14f227a3401c7f
parent835d874df1973b7e1c602a747b42b77095592a9c
Move `mapM` and `sequence` to GHC.Base and break import-cycles

This simplifies the import graph and more importantly removes import
cycles that arise due to `Control.Monad` & `Data.List` importing
`Data.Traversable` (preparation for #9586)

Reviewed By: ekmett, austin

Differential Revision: https://phabricator.haskell.org/D234
14 files changed:
libraries/base/Control/Arrow.hs
libraries/base/Control/Monad.hs
libraries/base/Control/Monad/Fix.hs
libraries/base/Data/List.hs
libraries/base/Data/Traversable.hs
libraries/base/GHC/Base.lhs
libraries/base/GHC/Event/Manager.hs
libraries/base/GHC/Event/Thread.hs
libraries/base/GHC/Event/TimerManager.hs
libraries/base/GHC/ForeignPtr.hs
libraries/base/GHC/IO/Handle.hs
libraries/base/Prelude.hs
libraries/base/Text/ParserCombinators/ReadP.hs
testsuite/tests/module/mod176.hs