[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) (49c3a2e)

git at git.haskell.org git at git.haskell.org
Thu Nov 6 13:14:00 UTC 2014


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

On branch  : wip/T9732
Link       : http://ghc.haskell.org/trac/ghc/changeset/49c3a2e80308f9680d4b1f1c9aef25adf6eb11bc/ghc

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

commit 49c3a2e80308f9680d4b1f1c9aef25adf6eb11bc
Author: Dr. ERDI Gergo <gergo at erdi.hu>
Date:   Thu Nov 6 18:07:31 2014 +0800

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


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

49c3a2e80308f9680d4b1f1c9aef25adf6eb11bc
 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
 10 files changed, 63 insertions(+), 34 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 49c3a2e80308f9680d4b1f1c9aef25adf6eb11bc


More information about the ghc-commits mailing list