Re-jig SOURCE imports
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 5 Jun 2013 17:01:54 +0000 (18:01 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 6 Jun 2013 13:38:35 +0000 (14:38 +0100)
commit8d87b5bf45082f29eefc911df1378fad327bf6fa
tree909bcb62f16d957cb14fbc65236db6e13f6c4e06
parentf3c261bcc9dfec69abf0eff08758b4f0b126943e
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
27 files changed:
libraries/base/Data/OldTypeable.hs
libraries/base/Data/Typeable.hs
libraries/base/Data/Typeable.hs-boot [deleted file]
libraries/base/Data/Typeable/Internal.hs
libraries/base/Foreign/C/Types.hs
libraries/base/Foreign/ForeignPtr/Imp.hs
libraries/base/Foreign/Marshal/Alloc.hs
libraries/base/Foreign/Marshal/Array.hs
libraries/base/Foreign/Storable.hs
libraries/base/GHC/Arr.lhs
libraries/base/GHC/Base.lhs
libraries/base/GHC/Err.lhs
libraries/base/GHC/Err.lhs-boot
libraries/base/GHC/Event/Array.hs
libraries/base/GHC/Event/EPoll.hsc
libraries/base/GHC/Event/Poll.hsc
libraries/base/GHC/Exception.lhs
libraries/base/GHC/Exception.lhs-boot [new file with mode: 0644]
libraries/base/GHC/ForeignPtr.hs
libraries/base/GHC/IOArray.hs
libraries/base/GHC/IORef.hs
libraries/base/GHC/Int.hs
libraries/base/GHC/MVar.hs
libraries/base/GHC/Read.lhs
libraries/base/GHC/Real.lhs
libraries/base/GHC/Stable.lhs
libraries/base/GHC/Word.hs