summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Main.hs6
-rw-r--r--walint.cabal2
2 files changed, 3 insertions, 5 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
diff --git a/walint.cabal b/walint.cabal
index 1de7798..0776ca3 100644
--- a/walint.cabal
+++ b/walint.cabal
@@ -58,7 +58,7 @@ executable walint
aeson,
aeson-pretty,
bytestring,
- bytestring-encoding,
+-- bytestring-encoding,
text
hs-source-dirs: src
default-language: Haskell2010