Fix printing of list results on FreeBSD

This commit is contained in:
Julian Ospald 2020-03-17 22:58:52 +01:00
parent c0c70f5c9b
commit e77ed1a26c

View File

@ -32,6 +32,7 @@ import Data.String.Interpolate
import Data.Text ( Text )
import Data.Versions
import Data.Void
import GHC.IO.Encoding
import Haskus.Utils.Variant.Excepts
import HPath
import HPath.IO
@ -777,6 +778,9 @@ fromVersion av (Just (ToolTag Recommended)) tool =
printListResult :: [ListResult] -> IO ()
printListResult lr = do
-- https://gitlab.haskell.org/ghc/ghc/issues/8118
setLocaleEncoding utf8
let
formatted =
gridString