Fix desugaring of bang-pattern let-bindings
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 18 Feb 2016 11:05:45 +0000 (11:05 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 18 Feb 2016 11:35:06 +0000 (11:35 +0000)
commit01449eb552daa082e46ceaaf8481708ee73dc2ad
treee23a374134e33784f1707859190264b702ae0ad6
parent27842ec190cf46b6e494520761af41847837dc86
Fix desugaring of bang-pattern let-bindings

When implementing Strict Haskell, the patch 46a03fbe didn't faithfully
implement the semantics given in the manual. In particular there was
an ad-hoc case in mkSelectorBinds for "strict and no binders" that
didn't work.

This patch fixes it, curing Trac #11572.

Howver it forced me to think about banged let-bindings, and I rather
think we do not have quite the right semantics yet, so I've opened
Trac #11601.
compiler/deSugar/DsUtils.hs
docs/users_guide/glasgow_exts.rst
testsuite/tests/deSugar/should_run/T11572.hs [new file with mode: 0644]
testsuite/tests/deSugar/should_run/T11572.stderr [new file with mode: 0644]
testsuite/tests/deSugar/should_run/all.T