summaryrefslogtreecommitdiff
path: root/compiler/iface/BinIface.hs
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-01-30 14:06:53 +0000
committerIan Lynagh <ian@well-typed.com>2013-01-30 17:43:44 +0000
commit0a1b7cb85fac3988ae625ba8bb491de81c39bfdc (patch)
tree4359f4a73d3eb7e608707f01e1f049fe357b4482 /compiler/iface/BinIface.hs
parent1bb4913c3c9b1942c014475e38f2f8cf8b61be68 (diff)
downloadhaskell-0a1b7cb85fac3988ae625ba8bb491de81c39bfdc.tar.gz
Change a few throwGhcException uses to throwGhcExceptionIO
Diffstat (limited to 'compiler/iface/BinIface.hs')
-rw-r--r--compiler/iface/BinIface.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/iface/BinIface.hs b/compiler/iface/BinIface.hs
index 7f9b24e6e4..5a751f7243 100644
--- a/compiler/iface/BinIface.hs
+++ b/compiler/iface/BinIface.hs
@@ -96,7 +96,7 @@ readBinIface_ dflags checkHiWay traceBinIFaceReading hi_path ncu = 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) $ throwGhcException $ ProgramError
+ when (wanted /= got) $ throwGhcExceptionIO $ ProgramError
(what ++ " (wanted " ++ show wanted
++ ", got " ++ show got ++ ")")
bh <- Binary.readBinMem hi_path