Fix Trac #9815
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 21 Nov 2014 13:02:45 +0000 (13:02 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 21 Nov 2014 13:02:45 +0000 (13:02 +0000)
commit4ba4cc7aaaf2bff31bc8474c8ba40e1cbe3e3875
tree7460b9a9c6e2f9a64bd3b96137646ccaec63209b
parenteaccc72162194d12a33aa454b57c126bcabcdd5d
Fix Trac #9815

Dot-dot record-wildcard notation is simply illegal for constructors
without any named fields, but that was neither documented nor checked.
This patch does so

- Make the check in RnPat
- Add test T9815
- Fix CmmLayoutStack which was using the illegal form (!)
- Document in user manual
compiler/cmm/CmmLayoutStack.hs
compiler/rename/RnPat.lhs
docs/users_guide/glasgow_exts.xml
testsuite/tests/rename/should_fail/T9815.hs [new file with mode: 0644]
testsuite/tests/rename/should_fail/T9815.stderr [new file with mode: 0644]
testsuite/tests/rename/should_fail/all.T