summaryrefslogtreecommitdiff
path: root/libraries/base/Foreign/ForeignPtr
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2013-06-05 18:01:54 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2013-06-06 14:38:35 +0100
commit8d87b5bf45082f29eefc911df1378fad327bf6fa (patch)
tree909bcb62f16d957cb14fbc65236db6e13f6c4e06 /libraries/base/Foreign/ForeignPtr
parentf3c261bcc9dfec69abf0eff08758b4f0b126943e (diff)
downloadhaskell-8d87b5bf45082f29eefc911df1378fad327bf6fa.tar.gz
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
Diffstat (limited to 'libraries/base/Foreign/ForeignPtr')
-rw-r--r--libraries/base/Foreign/ForeignPtr/Imp.hs1
1 files changed, 0 insertions, 1 deletions
diff --git a/libraries/base/Foreign/ForeignPtr/Imp.hs b/libraries/base/Foreign/ForeignPtr/Imp.hs
index f2c019ea34..19d31b8581 100644
--- a/libraries/base/Foreign/ForeignPtr/Imp.hs
+++ b/libraries/base/Foreign/ForeignPtr/Imp.hs
@@ -64,7 +64,6 @@ import Foreign.Storable ( Storable(sizeOf) )
#ifdef __GLASGOW_HASKELL__
import GHC.Base
import GHC.Num
-import GHC.Err ( undefined )
import GHC.ForeignPtr
#endif