Give a more helpful error message on platforms for which FFI support
isn't implemented in GHCi (namely x86_64 at the moment).
import Outputable
import SMRep ( CgRep(..), cgRepSizeW )
import ForeignCall ( CCallConv(..) )
import Outputable
import SMRep ( CgRep(..), cgRepSizeW )
import ForeignCall ( CCallConv(..) )
-- DON'T remove apparently unused imports here ..
-- there is ifdeffery below
-- DON'T remove apparently unused imports here ..
-- there is ifdeffery below
+import Control.Exception ( throwDyn )
import DATA_BITS ( Bits(..), shiftR, shiftL )
import Foreign ( newArray )
import Data.List ( mapAccumL )
import DATA_BITS ( Bits(..), shiftR, shiftL )
import Foreign ( newArray )
import Data.List ( mapAccumL )
- = error "mkMarshalCode not implemented for this platform."
+ = throwDyn (InstallationError "foreign import is not implemented for GHCi on this platform.")