There was an error fetching the commit references. Please try again later.
If pattern synonym is bidirectional and its type is some unboxed type T#,
generate a worker function of type Void# -> T#, and redirect the wrapper (via a compulsory unfolding) to the worker. Fixes #9732.
Showing
- compiler/basicTypes/PatSyn.lhs 44 additions, 6 deletionscompiler/basicTypes/PatSyn.lhs
- compiler/ghc.mk 1 addition, 0 deletionscompiler/ghc.mk
- compiler/iface/BuildTyCl.lhs 1 addition, 1 deletioncompiler/iface/BuildTyCl.lhs
- compiler/iface/IfaceSyn.lhs 5 additions, 5 deletionscompiler/iface/IfaceSyn.lhs
- compiler/iface/MkIface.lhs 2 additions, 2 deletionscompiler/iface/MkIface.lhs
- compiler/iface/TcIface.lhs 54 additions, 8 deletionscompiler/iface/TcIface.lhs
- compiler/typecheck/TcBinds.lhs 4 additions, 4 deletionscompiler/typecheck/TcBinds.lhs
- compiler/typecheck/TcPatSyn.lhs 60 additions, 59 deletionscompiler/typecheck/TcPatSyn.lhs
- compiler/typecheck/TcPatSyn.lhs-boot 2 additions, 2 deletionscompiler/typecheck/TcPatSyn.lhs-boot
- testsuite/.gitignore 1 addition, 0 deletionstestsuite/.gitignore
- testsuite/tests/patsyn/should_compile/T9732.hs 4 additions, 0 deletionstestsuite/tests/patsyn/should_compile/T9732.hs
- testsuite/tests/patsyn/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/patsyn/should_compile/all.T
- testsuite/tests/patsyn/should_fail/all.T 1 addition, 0 deletionstestsuite/tests/patsyn/should_fail/all.T
- testsuite/tests/patsyn/should_fail/unboxed-wrapper-naked.hs 8 additions, 0 deletionstestsuite/tests/patsyn/should_fail/unboxed-wrapper-naked.hs
- testsuite/tests/patsyn/should_fail/unboxed-wrapper-naked.stderr 3 additions, 0 deletions...ite/tests/patsyn/should_fail/unboxed-wrapper-naked.stderr
- testsuite/tests/patsyn/should_run/all.T 2 additions, 0 deletionstestsuite/tests/patsyn/should_run/all.T
- testsuite/tests/patsyn/should_run/match-unboxed.hs 21 additions, 0 deletionstestsuite/tests/patsyn/should_run/match-unboxed.hs
- testsuite/tests/patsyn/should_run/match-unboxed.stdout 4 additions, 0 deletionstestsuite/tests/patsyn/should_run/match-unboxed.stdout
- testsuite/tests/patsyn/should_run/unboxed-wrapper.hs 9 additions, 0 deletionstestsuite/tests/patsyn/should_run/unboxed-wrapper.hs
- testsuite/tests/patsyn/should_run/unboxed-wrapper.stdout 1 addition, 0 deletionstestsuite/tests/patsyn/should_run/unboxed-wrapper.stdout
Loading
Please register or sign in to comment