diff options
author | Sven G. Brönstrup | 2021-12-21 22:08:32 +0100 |
---|---|---|
committer | Sven G. Brönstrup | 2021-12-21 22:08:32 +0100 |
commit | c06857929529f48b2b4b63a7e8742b246042bf20 (patch) | |
tree | 08a0c9f36219de6a3509a39f39df4cfd3a4fccb8 /src | |
parent | 7709a44520aabdfe4657c0abff3a5acc40bedc0f (diff) | |
parent | e8fca76246a313f743180408c5745cb050d1d1a6 (diff) |
Merge branch 'main' into extended-scripts
Diffstat (limited to 'src')
-rw-r--r-- | src/Main.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs index 7415e18..32afb6a 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -11,8 +11,9 @@ import Control.Monad.Identity (Identity) import Data.Aeson (eitherDecode, encode) import Data.Aeson.Encode.Pretty (encodePretty) import Data.Aeson.KeyMap (coercionToHashMap) -import qualified Data.ByteString.Char8 as C8 import qualified Data.ByteString.Lazy as LB +import qualified Data.Text.Encoding as T +import qualified Data.Text.IO as T import Data.Maybe (fromMaybe) import System.Exit (ExitCode (..), exitWith) import WithCli @@ -88,7 +89,7 @@ run options = do -- | haskell's many string types are FUN … printLB :: LB.ByteString -> IO () -printLB a = putStrLn $ C8.unpack $ LB.toStrict a +printLB a = T.putStrLn $ T.decodeUtf8 $ LB.toStrict a -- if Aesons's internal map and HashMap are the same type, then coercionToHashMap |