[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) (cb12825)

git at git.haskell.org git at git.haskell.org
Thu Nov 6 13:10:58 UTC 2014


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

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

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

commit cb128254b6ea33f85b2b0e31fb151b477c8a3c53
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)


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

cb128254b6ea33f85b2b0e31fb151b477c8a3c53
 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 cb128254b6ea33f85b2b0e31fb151b477c8a3c53


More information about the ghc-commits mailing list