Skip to content

Commit 26d2161

Browse files
Compat.Outputable: m reexport (<>) as 'append'
1 parent 4c45c87 commit 26d2161

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ghcide/src/Development/IDE/GHC/Compat/Outputable.hs

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module Development.IDE.GHC.Compat.Outputable (
44
SDoc,
5+
append,
56
Outputable,
67
showSDoc,
78
showSDocUnsafe,
@@ -43,6 +44,7 @@ import GHC.Unit.State
4344
import GHC.Utils.Error hiding (mkWarnMsg)
4445
import GHC.Utils.Logger
4546
import GHC.Utils.Outputable
47+
import qualified GHC.Utils.Outputable as Out
4648
import GHC.Utils.Panic
4749
#elif MIN_VERSION_ghc(9,0,0)
4850
import GHC.Driver.Session
@@ -163,3 +165,8 @@ mkWarnMsg =
163165
#else
164166
Err.mkWarnMsg
165167
#endif
168+
169+
-- 2021-12-21: NOTE: A lazy way to make export of Outputable.(<>) to not clash with Semigroup
170+
-- under unqualified Compat.Outputable imports.
171+
append :: SDoc -> SDoc -> SDoc
172+
append = (Out.<>)

0 commit comments

Comments
 (0)