[commit: ghc] master: Fix oversight in comverting tuples from TH to HsSyn (Trac #8507) (fa8b20a)
git at git.haskell.org
git at git.haskell.org
Thu Nov 7 13:26:17 UTC 2013
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/fa8b20af798c85d4a0b6faf266c67d0c9ab178a9/ghc
>---------------------------------------------------------------
commit fa8b20af798c85d4a0b6faf266c67d0c9ab178a9
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Thu Nov 7 13:25:47 2013 +0000
Fix oversight in comverting tuples from TH to HsSyn (Trac #8507)
>---------------------------------------------------------------
fa8b20af798c85d4a0b6faf266c67d0c9ab178a9
compiler/hsSyn/Convert.lhs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler/hsSyn/Convert.lhs b/compiler/hsSyn/Convert.lhs
index eeda965..e789d17 100644
--- a/compiler/hsSyn/Convert.lhs
+++ b/compiler/hsSyn/Convert.lhs
@@ -912,7 +912,7 @@ cvtTypeKind ty_str ty
| length tys' == n -- Saturated
-> if n==1 then return (head tys') -- Singleton tuples treated
-- like nothing (ie just parens)
- else returnL (HsTupleTy HsBoxedTuple tys')
+ else returnL (HsTupleTy HsBoxedOrConstraintTuple tys')
| n == 1
-> failWith (ptext (sLit ("Illegal 1-tuple " ++ ty_str ++ " constructor")))
| otherwise
More information about the ghc-commits
mailing list