[Git][ghc/ghc][master] Add an Outputable instance for SDoc with ppr = id.
Marge Bot
gitlab at gitlab.haskell.org
Thu Apr 18 03:31:17 UTC 2019
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
f0f495f0 by klebinger.andreas at gmx.at at 2019-04-18T03:25:10Z
Add an Outputable instance for SDoc with ppr = id.
When printf debugging this can be helpful.
- - - - -
1 changed file:
- compiler/utils/Outputable.hs
Changes:
=====================================
compiler/utils/Outputable.hs
=====================================
@@ -327,6 +327,10 @@ data SDocContext = SDC
instance IsString SDoc where
fromString = text
+-- The lazy programmer's friend.
+instance Outputable SDoc where
+ ppr = id
+
initSDocContext :: DynFlags -> PprStyle -> SDocContext
initSDocContext dflags sty = SDC
{ sdocStyle = sty
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/f0f495f0c4e16520adea83e82885dc08fa0c38a3
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/f0f495f0c4e16520adea83e82885dc08fa0c38a3
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20190417/1eb61c8e/attachment.html>
More information about the ghc-commits
mailing list