aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock
diff options
context:
space:
mode:
authorAlec Theriault <alec.theriault@gmail.com>2018-10-16 14:59:13 -0700
committerAlec Theriault <alec.theriault@gmail.com>2018-10-16 14:59:13 -0700
commit41d9846754cdccb82e667ece2f44725ed9cab4e7 (patch)
tree10228f82c23f1e25dcf7b6c097f76d673e0ea18e /haddock-api/src/Haddock
parent44169f4b1907e34fdf8ff84cf8b7509b1dfcaf55 (diff)
parent9712d8899d452292913a260058a6dd3346e8d39b (diff)
Merge branch 'ghc-8.4' into ghc-8.6
Diffstat (limited to 'haddock-api/src/Haddock')
-rw-r--r--haddock-api/src/Haddock/Interface.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/haddock-api/src/Haddock/Interface.hs b/haddock-api/src/Haddock/Interface.hs
index c330c5fe..759d5d03 100644
--- a/haddock-api/src/Haddock/Interface.hs
+++ b/haddock-api/src/Haddock/Interface.hs
@@ -84,6 +84,7 @@ processModules
processModules verbosity modules flags extIfaces = do
#if defined(mingw32_HOST_OS)
-- Avoid internal error: <stderr>: hPutChar: invalid argument (invalid character)' non UTF-8 Windows
+ liftIO $ hSetEncoding stdout $ mkLocaleEncoding TransliterateCodingFailure
liftIO $ hSetEncoding stderr $ mkLocaleEncoding TransliterateCodingFailure
#endif