Skip to content

Commit 3394c0e

Browse files
authored
Merge pull request #3928 from ezyang/1.24
Fix reexported-modules display mangling.
2 parents a4333ae + 4ad8271 commit 3394c0e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Cabal/Distribution/InstalledPackageInfo.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ instance Text OriginalModule where
187187

188188
instance Text ExposedModule where
189189
disp (ExposedModule m reexport) =
190-
Disp.sep [ disp m
191-
, case reexport of
192-
Just m' -> Disp.sep [Disp.text "from", disp m']
193-
Nothing -> Disp.empty
194-
]
190+
Disp.hsep [ disp m
191+
, case reexport of
192+
Just m' -> Disp.hsep [Disp.text "from", disp m']
193+
Nothing -> Disp.empty
194+
]
195195
parse = do
196196
m <- parseModuleNameQ
197197
Parse.skipSpaces

0 commit comments

Comments
 (0)