[commit: ghc] master: template-haskell: Properly escape StrTyLit doc (db1fd97)

git at git.haskell.org git at git.haskell.org
Sat May 27 10:02:41 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/db1fd9777525212cf1e563d54491505c4795a7e9/ghc

>---------------------------------------------------------------

commit db1fd9777525212cf1e563d54491505c4795a7e9
Author: Eric Mertens <emertens at gmail.com>
Date:   Thu May 25 16:44:18 2017 -0700

    template-haskell: Properly escape StrTyLit doc


>---------------------------------------------------------------

db1fd9777525212cf1e563d54491505c4795a7e9
 libraries/template-haskell/Language/Haskell/TH/Syntax.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libraries/template-haskell/Language/Haskell/TH/Syntax.hs b/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
index 31e5ccd..2b99a7a 100644
--- a/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
+++ b/libraries/template-haskell/Language/Haskell/TH/Syntax.hs
@@ -1959,7 +1959,7 @@ data InjectivityAnn = InjectivityAnn Name [Name]
   deriving ( Show, Eq, Ord, Data, Generic )
 
 data TyLit = NumTyLit Integer             -- ^ @2@
-           | StrTyLit String              -- ^ @"Hello"@
+           | StrTyLit String              -- ^ @\"Hello\"@
   deriving ( Show, Eq, Ord, Data, Generic )
 
 -- | Role annotations



More information about the ghc-commits mailing list