Remove special casing of singleton strings, split all strings.
authorThijs Alkemade <thijsalkemade@gmail.com>
Tue, 16 Sep 2014 12:55:34 +0000 (07:55 -0500)
committerAustin Seipp <austin@well-typed.com>
Tue, 16 Sep 2014 12:55:35 +0000 (07:55 -0500)
commitfe9f7e40844802443315ef2238c4cdefda756b62
tree666a971c2af1c08c6dcb66af5688a8c28d3140dc
parent3681c885ad6f1103333aaa508a1cd26078914ef0
Remove special casing of singleton strings, split all strings.

Summary:
exprIsConApp_maybe now detects string literals and correctly
splits them. This means case-statemnts on string literals can
now push the literal into the cases.

fix trac issue #9400

Test Plan: validate

Reviewers: austin, simonpj

Reviewed By: austin, simonpj

Subscribers: simonmar, ezyang, carter

Differential Revision: https://phabricator.haskell.org/D199

GHC Trac Issues: #9400
compiler/coreSyn/CoreSubst.lhs
compiler/coreSyn/MkCore.lhs
testsuite/tests/simplCore/should_compile/T9400.hs [new file with mode: 0644]
testsuite/tests/simplCore/should_compile/T9400.stderr [new file with mode: 0644]
testsuite/tests/simplCore/should_compile/all.T