From 83fa1ceb414f51caa1e17f2e5ac3908b3f6c4107 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Wed, 21 Aug 2019 03:32:42 +0200 Subject: Remove pretty-show dependency It's a bit heavy just for a single use-site for debugging. --- cabal-helper.cabal | 2 +- src/CabalHelper/Compiletime/Program/Stack.hs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cabal-helper.cabal b/cabal-helper.cabal index 4c1965f..ede2124 100644 --- a/cabal-helper.cabal +++ b/cabal-helper.cabal @@ -112,7 +112,6 @@ common build-deps , filepath < 1.5 && >= 1.4.1.1 , mtl < 2.3 && >= 2.0 , process < 1.7 && >= 1.4.3.0 - , pretty-show < 1.9 && >= 1.8.1 , semigroups < 0.19 && >= 0.18 , semigroupoids < 5.4 && >= 5.2 , SHA < 1.7 && >= 1.6.4.4 @@ -186,6 +185,7 @@ test-suite ghc-session ghc-options: -Wall build-depends: ghc < 8.7 && >= 8.0.2 , ghc-paths < 0.2 && >= 0.1.0.9 + , pretty-show < 1.9 && >= 1.8.1 , cabal-helper , c-h-internal diff --git a/src/CabalHelper/Compiletime/Program/Stack.hs b/src/CabalHelper/Compiletime/Program/Stack.hs index 5c5f808..45f90ab 100644 --- a/src/CabalHelper/Compiletime/Program/Stack.hs +++ b/src/CabalHelper/Compiletime/Program/Stack.hs @@ -39,7 +39,6 @@ import System.Directory (findExecutable) import System.FilePath hiding ((<.>)) import System.IO (hPutStrLn, stderr) import Text.Printf (printf) -import Text.Show.Pretty import Prelude import CabalHelper.Compiletime.Types @@ -101,7 +100,7 @@ listPackageCabalFiles qe@QueryEnv{qeProjLoc=ProjLocStackYaml stack_yaml} stack_ver <- MaybeT $ return $ parseVerMay stack_ver_str guard $ stack_ver < makeVersion [1,9,4] - let prog_cfg = ppShow $ qePrograms qe + let prog_cfg = show $ qePrograms qe liftIO $ hPutStrLn stderr $ printf "\nerror: stack version too old!\ -- cgit v1.2.3