diff --git a/package.yaml b/package.yaml index 125f31bd58..f2ad1aae94 100644 --- a/package.yaml +++ b/package.yaml @@ -40,7 +40,6 @@ ghc-options: dependencies: - Cabal - aeson -- aeson-pretty - annotated-wl-pprint - ansi-terminal - array diff --git a/src/Stack/Dot.hs b/src/Stack/Dot.hs index 7360218a83..a49b6dab47 100644 --- a/src/Stack/Dot.hs +++ b/src/Stack/Dot.hs @@ -16,7 +16,6 @@ module Stack.Dot (dot ) where import Data.Aeson -import Data.Aeson.Encode.Pretty import qualified Data.ByteString.Lazy.Char8 as LBC8 import qualified Data.Foldable as F import qualified Data.Sequence as Seq @@ -202,7 +201,7 @@ pkgLocToJSON (PLImmutable (PLIRepo repo _)) = object [ "type" .= case repoType r printJSON :: Set PackageName -> Map PackageName (Set PackageName, DotPayload) -> IO () -printJSON pkgs dependencyMap = LBC8.putStrLn $ encodePretty $ DependencyTree pkgs dependencyMap +printJSON pkgs dependencyMap = LBC8.putStrLn $ encode $ DependencyTree pkgs dependencyMap treeRoots :: ListDepsOpts -> Set PackageName -> Set PackageName treeRoots opts projectPackages' =