X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fghci%2FLibFFI.hsc;h=e73b02395832b98b72e60e8b6f1203badac995c0;hb=ee26207114635c480dbc7518c0510545a6f62611;hp=7f24d01a7d2b945c3b09a09c2602a0d73c8203bc;hpb=e0fcf61dca4dfac99cb5417e1bc4cbee18822cf2;p=ghc-hetmet.git diff --git a/compiler/ghci/LibFFI.hsc b/compiler/ghci/LibFFI.hsc index 7f24d01..e73b023 100644 --- a/compiler/ghci/LibFFI.hsc +++ b/compiler/ghci/LibFFI.hsc @@ -22,7 +22,6 @@ import Constants import Foreign import Foreign.C import Text.Printf -import Control.Exception ---------------------------------------------------------------------------- @@ -45,7 +44,7 @@ prepForeignCall cconv arg_types result_type let res_ty = primRepToFFIType result_type r <- ffi_prep_cif cif abi (fromIntegral n_args) res_ty arg_arr if (r /= fFI_OK) - then throwDyn (InstallationError + then ghcError (InstallationError (printf "prepForeignCallFailed: %d" (show r))) else return cif