summaryrefslogtreecommitdiff
path: root/libraries/base/tests
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/base/tests')
-rw-r--r--libraries/base/tests/IO/readwrite003.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/libraries/base/tests/IO/readwrite003.hs b/libraries/base/tests/IO/readwrite003.hs
index d7ee78d637..c8995e3e7d 100644
--- a/libraries/base/tests/IO/readwrite003.hs
+++ b/libraries/base/tests/IO/readwrite003.hs
@@ -9,4 +9,5 @@ main = do
hPutStrLn h "yz"
hClose h
h <- openBinaryFile file ReadMode
+ hSetNewlineMode stdout noNewlineTranslation
hGetContents h >>= putStr