Fix Pretty printer tests on Windows
authorTamar Christina <tamar@zhox.com>
Sat, 17 Dec 2016 16:40:11 +0000 (16:40 +0000)
committerTamar Christina <tamar@zhox.com>
Sat, 17 Dec 2016 19:21:44 +0000 (19:21 +0000)
commitd88efb7048160c3031eadb4f3b729e9fe406414d
tree9601a1de546a182c0750b3f265c1e4acbbeb32c6
parentc4808602124577217dbd39576c120a77f923ca6f
Fix Pretty printer tests on Windows

Summary:
D2752 added some tests which escapes string literals. This means newlines are converted
before they get normalized by the IO functions. So on Windows \r\n would be in the output
while \n was expected.

Test Plan: make test -C testsuite/tests/printer

Reviewers: austin, bgamari, alanz

Reviewed By: alanz

Subscribers: thomie

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

GHC Trac Issues: #3384
utils/check-ppr/Main.hs