[commit: base] master: Re-jig SOURCE imports (b801f5f)

Ian Lynagh igloo at earth.li
Thu Jun 6 19:56:41 CEST 2013


Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

https://github.com/ghc/packages-base/commit/b801f5fdebfaf15a57fd55586f036aa0dfa4ad8c

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

commit b801f5fdebfaf15a57fd55586f036aa0dfa4ad8c
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Wed Jun 5 18:01:54 2013 +0100

    Re-jig SOURCE imports
    
    * Do not have have an hs-boot file for Data.Typeable
    * Instead make all the loops go through
         GHC.Err (just a couple of magic functions)
         GHC.Exception (some non-exceptional functions)
    
    The main idea is
      a) don't involve classes in the hs-boot world
      b) loop through error cases where performance doesn't matter
      c) be careful not to SOURCE import things that are bottom,
         unless MkCore knows about them in eRROR_IDS, so that we
         see their strictness

 Data/OldTypeable.hs       |    1 -
 Data/Typeable.hs          |    8 ++------
 Data/Typeable.hs-boot     |   10 ----------
 Data/Typeable/Internal.hs |   34 ++++++++++++++++++----------------
 Foreign/C/Types.hs        |    4 +---
 Foreign/ForeignPtr/Imp.hs |    1 -
 Foreign/Marshal/Alloc.hs  |    1 -
 Foreign/Marshal/Array.hs  |    1 -
 Foreign/Storable.hs       |    2 +-
 GHC/Arr.lhs               |    4 ++--
 GHC/Base.lhs              |    6 +++---
 GHC/Err.lhs               |   39 +++++----------------------------------
 GHC/Err.lhs-boot          |   14 +++++++-------
 GHC/Event/Array.hs        |    1 -
 GHC/Event/EPoll.hsc       |    1 -
 GHC/Event/Poll.hsc        |    1 -
 GHC/Exception.lhs         |   19 ++++++++++++++++---
 GHC/Exception.lhs-boot    |   19 +++++++++++++++++++
 GHC/ForeignPtr.hs         |    1 -
 GHC/IOArray.hs            |    5 +++--
 GHC/IORef.hs              |    5 +++--
 GHC/Int.hs                |   14 +++++++-------
 GHC/MVar.hs               |    5 +++--
 GHC/Read.lhs              |    1 -
 GHC/Real.lhs              |   25 ++++++++++++++++++++++++-
 GHC/Stable.lhs            |    4 +++-
 GHC/Word.hs               |    2 +-
 27 files changed, 118 insertions(+), 110 deletions(-)


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

    git show b801f5fdebfaf15a57fd55586f036aa0dfa4ad8c



More information about the ghc-commits mailing list