summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorstuebinm2021-10-04 17:33:06 +0200
committerstuebinm2021-10-04 17:33:06 +0200
commit6a16828beb09efdffe5bc2014df409a21965590a (patch)
tree8716104f2d62cefd550da882fedb4f473236bcfc /src
parentfafc59bfac01da3f080dcda9d2e01572629e4306 (diff)
removed unnecessary dependency
Diffstat (limited to 'src')
-rw-r--r--src/Main.hs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 5072a64..f4060b9 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -9,10 +9,8 @@ module Main where
import Data.Aeson (encode)
import Data.Aeson.Encode.Pretty (encodePretty)
import qualified Data.ByteString.Lazy as LB
-import qualified Data.ByteString.Lazy.Encoding as LB
+import qualified Data.ByteString.Char8 as C8
import Data.Maybe (fromMaybe)
-import Data.Text.Lazy as T
-import System.IO (utf8)
import WithCli
import Util (printPretty)
@@ -54,4 +52,4 @@ run options = do
-- | haskell's many string types are FUN …
printLB :: LB.ByteString -> IO ()
-printLB = putStrLn . T.unpack . LB.decode utf8
+printLB a = putStrLn $ C8.unpack $ LB.toStrict a