Bugfix for bug 11632: `readLitChar` should consume null characters
authorBen Gamari <ben@smart-cactus.org>
Sat, 16 Jul 2016 22:12:52 +0000 (00:12 +0200)
committerBen Gamari <ben@smart-cactus.org>
Sat, 16 Jul 2016 22:12:53 +0000 (00:12 +0200)
commit0f0cdb6827803015a9a3924fdafaef8dbcde048f
treec35159a2c5ba6b4c9d9bfe4aa759c1878fa06813
parent24f5f368d8ed0b5f113c2753b2b2bdc99957dcb2
Bugfix for bug 11632: `readLitChar` should consume null characters

Test Plan: The tests have been included. This change deals with a
relatively minor edge case and should not break unrelated functionality.

Reviewers: thomie, #core_libraries_committee, ekmett, bgamari

Reviewed By: #core_libraries_committee, ekmett, bgamari

Subscribers: bgamari, ekmett

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

GHC Trac Issues: #11632
libraries/base/GHC/Read.hs
libraries/base/Text/Read/Lex.hs
libraries/base/tests/readLitChar.hs
libraries/base/tests/readLitChar.stdout