[commit: ghc] master: Move `when` to GHC.Base (eae1911)

git at git.haskell.org git at git.haskell.org
Thu Sep 18 21:13:18 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/eae19112462fe77a3f1298bff12b409b205a581d/ghc

>---------------------------------------------------------------

commit eae19112462fe77a3f1298bff12b409b205a581d
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Thu Sep 18 23:05:35 2014 +0200

    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


>---------------------------------------------------------------

eae19112462fe77a3f1298bff12b409b205a581d
 libraries/base/Control/Concurrent.hs      |  1 -
 libraries/base/Control/Monad.hs           | 15 ---------------
 libraries/base/Data/Data.hs               |  2 +-
 libraries/base/Data/Functor.hs            |  2 +-
 libraries/base/Data/Traversable.hs        |  3 +--
 libraries/base/Data/Version.hs            |  3 +--
 libraries/base/Debug/Trace.hs             |  1 -
 libraries/base/Foreign/C/Error.hs         |  2 +-
 libraries/base/Foreign/C/String.hs        |  2 --
 libraries/base/Foreign/Marshal/Pool.hs    |  3 +--
 libraries/base/GHC/Base.lhs               | 12 ++++++++++++
 libraries/base/GHC/Event/Array.hs         |  1 -
 libraries/base/GHC/Event/Control.hs       |  1 -
 libraries/base/GHC/Event/EPoll.hsc        |  1 -
 libraries/base/GHC/Event/IntTable.hs      |  7 +++----
 libraries/base/GHC/Event/Manager.hs       |  2 +-
 libraries/base/GHC/Event/Poll.hsc         |  3 +--
 libraries/base/GHC/Event/Thread.hs        |  2 +-
 libraries/base/GHC/Event/TimerManager.hs  |  2 +-
 libraries/base/GHC/Fingerprint.hs         |  1 -
 libraries/base/GHC/Foreign.hs             |  1 -
 libraries/base/GHC/IO/FD.hs               |  1 -
 libraries/base/GHC/IO/Handle.hs           |  2 +-
 libraries/base/GHC/IO/Handle/Internals.hs |  1 -
 libraries/base/GHC/IO/Handle/Text.hs      |  1 -
 libraries/base/System/Posix/Internals.hs  |  5 +----
 26 files changed, 27 insertions(+), 50 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc eae19112462fe77a3f1298bff12b409b205a581d


More information about the ghc-commits mailing list