import Outputable
import SMRep ( CgRep(..), cgRepSizeW )
import ForeignCall ( CCallConv(..) )
+import Panic
-- 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 )
#else
- = error "mkMarshalCode not implemented for this platform."
+ = throwDyn (InstallationError "foreign import is not implemented for GHCi on this platform.")
#endif