Properly escape character literals in Haddocks
authorAlec Theriault <alec.theriault@gmail.com>
Wed, 13 Feb 2019 13:43:35 +0000 (08:43 -0500)
committerAlec Theriault <alec.theriault@gmail.com>
Mon, 25 Feb 2019 08:48:28 +0000 (00:48 -0800)
commit78af4a329e8d368e2aa0b7ba44990876ae257c09
tree5e7fe5cd7d8cb9af85759373aa0a294a8bca8892
parent1808e0d8e29c45ddecce2664359c3c389cd6800d
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