[commit: ghc] wip/parse-errors, wip/unexpected-test: Properly escape character literals in Haddocks (173d0ce)

git at git.haskell.org git at git.haskell.org
Sat Feb 16 10:33:19 UTC 2019


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

On branches: wip/parse-errors,wip/unexpected-test
Link       : http://ghc.haskell.org/trac/ghc/changeset/173d0cee84ef944059a473b1425e48062739988f/ghc

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

commit 173d0cee84ef944059a473b1425e48062739988f
Author: Alec Theriault <alec.theriault at gmail.com>
Date:   Wed Feb 13 08:43:35 2019 -0500

    Properly escape character literals in Haddocks
    
    Character literals in Haddock should not be written as plain `'\n'` since
    single quotes are for linking identifiers. Besides, since we want the
    character literal to be monospaced, we really should use `@\'\\n\'@`.
    
    [skip ci]


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

173d0cee84ef944059a473b1425e48062739988f
 compiler/basicTypes/Literal.hs        |  2 +-
 compiler/utils/StringBuffer.hs        |  8 ++++----
 libraries/base/GHC/IO/Device.hs       |  2 +-
 libraries/base/GHC/IO/Encoding.hs     |  2 +-
 libraries/base/GHC/IO/Handle/Types.hs | 12 ++++++------
 libraries/base/GHC/ResponseFile.hs    |  2 +-
 libraries/base/System/IO.hs           | 10 +++++-----
 7 files changed, 19 insertions(+), 19 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 173d0cee84ef944059a473b1425e48062739988f


More information about the ghc-commits mailing list