[commit: ghc] wip/ghc-8.8-az: Properly escape character literals in Haddocks (78af4a3)

git at git.haskell.org git at git.haskell.org
Thu Feb 28 02:14:19 UTC 2019


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

On branch  : wip/ghc-8.8-az
Link       : http://ghc.haskell.org/trac/ghc/changeset/78af4a329e8d368e2aa0b7ba44990876ae257c09/ghc

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

commit 78af4a329e8d368e2aa0b7ba44990876ae257c09
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]


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

78af4a329e8d368e2aa0b7ba44990876ae257c09
 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 78af4a329e8d368e2aa0b7ba44990876ae257c09


More information about the ghc-commits mailing list