summaryrefslogtreecommitdiff
path: root/compiler/rename
diff options
context:
space:
mode:
authorSimon Jakobi <simon.jakobi@gmail.com>2018-05-30 20:38:18 -0400
committerBen Gamari <ben@smart-cactus.org>2018-05-30 22:05:37 -0400
commitd1beebb881722109d6935941e541eb175a9d6c62 (patch)
treec9fe754faee7ce415e93e17319aa8f3575253894 /compiler/rename
parent471b2a099a949549558b01f356a063d7ad73a5f4 (diff)
downloadhaskell-d1beebb881722109d6935941e541eb175a9d6c62.tar.gz
Make HsDocString a newtype of ByteString
Docstrings don't profit from FastString's interning, so we switch to a different type that doesn't incur this overhead. Updates the haddock submodule. Reviewers: alexbiehl, bgamari Reviewed By: alexbiehl, bgamari Subscribers: rwbarton, thomie, mpickering, carter GHC Trac Issues: #15157 Differential Revision: https://phabricator.haskell.org/D4743
Diffstat (limited to 'compiler/rename')
-rw-r--r--compiler/rename/RnHsDoc.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rename/RnHsDoc.hs b/compiler/rename/RnHsDoc.hs
index ac0731d50a..ac2589df4e 100644
--- a/compiler/rename/RnHsDoc.hs
+++ b/compiler/rename/RnHsDoc.hs
@@ -21,5 +21,5 @@ rnLHsDoc (L pos doc) = do
return (L pos doc')
rnHsDoc :: HsDocString -> RnM HsDocString
-rnHsDoc (HsDocString s) = return (HsDocString s)
+rnHsDoc = pure