summaryrefslogtreecommitdiff
path: root/compiler/iface/BinIface.hs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-07-30 12:01:34 +0000
committerIan Lynagh <igloo@earth.li>2008-07-30 12:01:34 +0000
commitaa9a4f1053d3c554629a2ec25955e7530c95b892 (patch)
tree7d9839bc410e92c7b0a6e35713fbbf03673338be /compiler/iface/BinIface.hs
parent179a3a7bd67ccc816e3b934eff770fb49c4cc456 (diff)
downloadhaskell-aa9a4f1053d3c554629a2ec25955e7530c95b892.tar.gz
Follow extensible exception changes
Diffstat (limited to 'compiler/iface/BinIface.hs')
-rw-r--r--compiler/iface/BinIface.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/iface/BinIface.hs b/compiler/iface/BinIface.hs
index a544b625e9..c155fb28c4 100644
--- a/compiler/iface/BinIface.hs
+++ b/compiler/iface/BinIface.hs
@@ -44,7 +44,6 @@ import Data.List
import Data.Word
import Data.Array
import Data.IORef
-import Control.Exception
import Control.Monad
data CheckHiWay = CheckHiWay | IgnoreHiWay
@@ -82,7 +81,7 @@ readBinIface_ checkHiWay traceBinIFaceReading hi_path nc = do
errorOnMismatch what wanted got
-- This will be caught by readIface which will emit an error
-- msg containing the iface module name.
- = when (wanted /= got) $ throwDyn $ ProgramError
+ = when (wanted /= got) $ ghcError $ ProgramError
(what ++ " (wanted " ++ show wanted
++ ", got " ++ show got ++ ")")
bh <- Binary.readBinMem hi_path