Properly escape character literals in Haddocks
authorAlec Theriault <alec.theriault@gmail.com>
Wed, 13 Feb 2019 13:43:35 +0000 (08:43 -0500)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Fri, 15 Feb 2019 23:35:28 +0000 (18:35 -0500)
commit173d0cee84ef944059a473b1425e48062739988f
tree7e48418c8741ebbe57db2f4ac5c95a5ac94e8b3a
parent887454d8889ca5dbba70425de41d97939cb9ac60
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]
compiler/basicTypes/Literal.hs
compiler/utils/StringBuffer.hs
libraries/base/GHC/IO/Device.hs
libraries/base/GHC/IO/Encoding.hs
libraries/base/GHC/IO/Handle/Types.hs
libraries/base/GHC/ResponseFile.hs
libraries/base/System/IO.hs