Fix Trac #1680; check for unboxed tuples in TcType.marshalableTyCon
authorsimonpj@microsoft.com <unknown>
Thu, 11 Oct 2007 12:34:26 +0000 (12:34 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 11 Oct 2007 12:34:26 +0000 (12:34 +0000)
compiler/typecheck/TcType.lhs

index 388a28d..1d4d166 100644 (file)
@@ -1276,6 +1276,7 @@ legalFFITyCon tc
 marshalableTyCon dflags tc
   =  (dopt Opt_UnliftedFFITypes dflags 
       && isUnLiftedTyCon tc
 marshalableTyCon dflags tc
   =  (dopt Opt_UnliftedFFITypes dflags 
       && isUnLiftedTyCon tc
+      && not (isUnboxedTupleTyCon tc)
       && case tyConPrimRep tc of       -- Note [Marshalling VoidRep]
           VoidRep -> False
           other   -> True)
       && case tyConPrimRep tc of       -- Note [Marshalling VoidRep]
           VoidRep -> False
           other   -> True)