[RFC] Support Unicode characters in instance Show String

Henning Thielemann lemming at henning-thielemann.de
Thu Jul 8 19:58:32 UTC 2021


On Thu, 8 Jul 2021, Oleg Grenrus wrote:

> GHC Manual: Using a custom interactive printing function [1]
> 
>     Prelude Data.Char> "foo"
>     "foo"
>     Prelude Data.Char> let myprint=putStrLn . map toUpper . show
>     Prelude Data.Char> :set -interactive-print myprint
>     Prelude Data.Char> "foo"
>     "FOO"
> 
> I remember some people using e.g. pretty-show or pretty-simple packages
> with great success.

That's great!

> No need to change anything in base, just make users aware of a 
> configuration possibility.

I missed that feature, too.


More information about the Libraries mailing list