On Mon, Apr 10, 2017 at 7:24 PM, Yuji Yamamoto <whosekiteneverfly@gmail.com> wrote:

Currently, I’m working on this issue,

where haddock crashes when printing the Unicode “bullet character” on stderr whose character encoding is not UTF-8.

In the beforementioned pull request, I just added hSetEncoding stderr utf8 as a quick-and-dirty workaround.
But GHC actually doesn’t do so: GHC prints “?” instead of the bullet character when stderr is not Unicode-compatible.

https://downloads.haskell.org/~ghc/8.0.2/docs/html/libraries/base-4.9.1.0/GHC-IO-Encoding.html#v:mkTextEncoding note the suffixes you can add to an encoding name.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net