[project @ 2003-12-19 10:39:54 by simonpj]
authorsimonpj <unknown>
Fri, 19 Dec 2003 10:39:54 +0000 (10:39 +0000)
committersimonpj <unknown>
Fri, 19 Dec 2003 10:39:54 +0000 (10:39 +0000)
Accept unboxed tuples in type signatures

ghc/compiler/typecheck/TcMType.lhs

index 41e556a..174f965 100644 (file)
@@ -584,6 +584,7 @@ checkValidType ctxt ty
        ubx_tup | not gla_exts = UT_NotOk
                | otherwise    = case ctxt of
                                   TySynCtxt _ -> UT_Ok
+                                  ExprSigCtxt -> UT_Ok
                                   other       -> UT_NotOk
                -- Unboxed tuples ok in function results,
                -- but for type synonyms we allow them even at