Fix Trac #1680; check for unboxed tuples in TcType.marshalableTyCon
[ghc-hetmet.git] / compiler / typecheck / TcType.lhs
index 388a28d..1d4d166 100644 (file)
@@ -1276,6 +1276,7 @@ legalFFITyCon tc
 marshalableTyCon dflags tc
   =  (dopt Opt_UnliftedFFITypes dflags 
       && isUnLiftedTyCon tc
+      && not (isUnboxedTupleTyCon tc)
       && case tyConPrimRep tc of       -- Note [Marshalling VoidRep]
           VoidRep -> False
           other   -> True)