aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2019-08-21 03:32:42 +0200
committerDaniel Gröber (dxld) <dxld@darkboxed.org>2019-09-17 17:48:26 +0200
commit83fa1ceb414f51caa1e17f2e5ac3908b3f6c4107 (patch)
treef289f4cf035ecee7f56318d580744a4ed1cfd0e1
parent56bb48210a0e0241216e0dcebee26ec479c73c5d (diff)
Remove pretty-show dependency
It's a bit heavy just for a single use-site for debugging.
-rw-r--r--cabal-helper.cabal2
-rw-r--r--src/CabalHelper/Compiletime/Program/Stack.hs3
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!\