[commit: ghc] wip/T9732: Add a dummy Void# argument to pattern synonym wrapper if it has no arguments and returns an unboxed type (see #9732) (27419ee)
git at git.haskell.org
git at git.haskell.org
Sun Nov 2 06:16:05 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/T9732
Link : http://ghc.haskell.org/trac/ghc/changeset/27419ee6cd46135c25e2e8aad2ef88137cf9eca6/ghc
>---------------------------------------------------------------
commit 27419ee6cd46135c25e2e8aad2ef88137cf9eca6
Author: Dr. ERDI Gergo <gergo at erdi.hu>
Date: Sun Nov 2 14:13:20 2014 +0800
Add a dummy Void# argument to pattern synonym wrapper
if it has no arguments and returns an unboxed type (see #9732)
>---------------------------------------------------------------
27419ee6cd46135c25e2e8aad2ef88137cf9eca6
compiler/typecheck/TcExpr.lhs | 36 +++++++-----
compiler/typecheck/TcPatSyn.lhs | 68 +++++++++++-----------
testsuite/.gitignore | 1 +
testsuite/tests/patsyn/should_compile/T9732.hs | 4 ++
testsuite/tests/patsyn/should_compile/all.T | 1 +
testsuite/tests/patsyn/should_fail/all.T | 2 +-
.../patsyn/should_fail/unboxed-wrapper-naked.hs | 8 +++
.../should_fail/unboxed-wrapper-naked.stderr | 3 +
testsuite/tests/patsyn/should_run/all.T | 1 +
.../tests/patsyn/should_run/unboxed-wrapper.hs | 9 +++
.../should_run/unboxed-wrapper.stdout} | 0
11 files changed, 86 insertions(+), 47 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 27419ee6cd46135c25e2e8aad2ef88137cf9eca6
More information about the ghc-commits
mailing list