File tree 1 file changed +3
-2
lines changed
Cabal/Distribution/Simple
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ import Distribution.Simple.Utils (cabalVersion)
69
69
import Distribution.Simple.Utils.Json
70
70
import Distribution.Types.TargetInfo
71
71
import Distribution.Text
72
+ import Distribution.Pretty
72
73
73
74
-- | Construct a JSON document describing the build information for a package
74
75
mkBuildInfo :: PackageDescription -- ^ Mostly information from the .cabal file
@@ -89,7 +90,7 @@ mkBuildInfo pkg_descr lbi _flags targetsToBuild = info
89
90
]
90
91
91
92
mkCompilerInfo = JsonObject
92
- [ " flavour" .= JsonString (show $ compilerFlavor $ compiler lbi)
93
+ [ " flavour" .= JsonString (prettyShow $ compilerFlavor $ compiler lbi)
93
94
, " compiler_id" .= JsonString (showCompilerId $ compiler lbi)
94
95
, " path" .= path
95
96
]
@@ -99,7 +100,7 @@ mkBuildInfo pkg_descr lbi _flags targetsToBuild = info
99
100
100
101
mkComponentInfo (name, clbi) = JsonObject
101
102
[ " type" .= JsonString compType
102
- , " name" .= JsonString (show name)
103
+ , " name" .= JsonString (prettyShow name)
103
104
, " compiler_args" .= JsonArray (map JsonString $ getCompilerArgs bi lbi clbi)
104
105
, " modules" .= JsonArray (map (JsonString . display) modules)
105
106
, " source_files" .= JsonArray (map JsonString source_files)
You can’t perform that action at this time.
0 commit comments