[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) (3dc8fb9)

git at git.haskell.org git at git.haskell.org
Sat Nov 1 11:45:19 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/T9732
Link       : http://ghc.haskell.org/trac/ghc/changeset/3dc8fb9556215712cb2348a4a2a7f44a6dbafa28/ghc

>---------------------------------------------------------------

commit 3dc8fb9556215712cb2348a4a2a7f44a6dbafa28
Author: Dr. ERDI Gergo <gergo at erdi.hu>
Date:   Sat Nov 1 11:49:23 2014 +0800

    Add a dummy Void# argument to pattern synonym wrapper
    if it has no arguments and returns an unboxed type (see #9732)


>---------------------------------------------------------------

3dc8fb9556215712cb2348a4a2a7f44a6dbafa28
 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 3dc8fb9556215712cb2348a4a2a7f44a6dbafa28


More information about the ghc-commits mailing list