From 0d8da265dadfd9170800a60a7d1a59543da5a6f5 Mon Sep 17 00:00:00 2001 From: "simonpj@microsoft.com" Date: Thu, 11 Oct 2007 12:34:26 +0000 Subject: [PATCH] Fix Trac #1680; check for unboxed tuples in TcType.marshalableTyCon --- compiler/typecheck/TcType.lhs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/typecheck/TcType.lhs b/compiler/typecheck/TcType.lhs index 388a28d..1d4d166 100644 --- a/compiler/typecheck/TcType.lhs +++ b/compiler/typecheck/TcType.lhs @@ -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) -- 1.7.10.4