projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove a redundant parameter for mkTupleTy (the arity)
[ghc-hetmet.git]
/
compiler
/
coreSyn
/
MkCore.lhs
diff --git
a/compiler/coreSyn/MkCore.lhs
b/compiler/coreSyn/MkCore.lhs
index
f67c78a
..
789abe4
100644
(file)
--- a/
compiler/coreSyn/MkCore.lhs
+++ b/
compiler/coreSyn/MkCore.lhs
@@
-348,9
+348,7
@@
mkCoreTup cs = mkConApp (tupleCon Boxed (length cs))
-- | Build the type of a small tuple that holds the specified type of thing
mkCoreTupTy :: [Type] -> Type
-- | Build the type of a small tuple that holds the specified type of thing
mkCoreTupTy :: [Type] -> Type
-mkCoreTupTy [ty] = ty
-mkCoreTupTy tys = mkTupleTy Boxed (length tys) tys
-
+mkCoreTupTy tys = mkTupleTy Boxed tys
-- | Build a big tuple holding the specified variables
mkBigCoreVarTup :: [Id] -> CoreExpr
-- | Build a big tuple holding the specified variables
mkBigCoreVarTup :: [Id] -> CoreExpr