diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-07-16 13:54:57 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-07-22 08:18:41 -0400 |
commit | ae1666353696b5d85938d8a2f5fb11fb66f21678 (patch) | |
tree | 7de167e7c2f27ec2acc300ba815677878c1bd738 /compiler/GHC/Hs | |
parent | 2c5991ccaf45cb7e68e54d59a27ee144a4499edb (diff) | |
download | haskell-ae1666353696b5d85938d8a2f5fb11fb66f21678.tar.gz |
ghc-boot: Clean up UTF-8 codecs
In preparation for moving the UTF-8 codecs into `base`:
* Move them to GHC.Utils.Encoding.UTF8
* Make names more consistent
* Add some Haddocks
Diffstat (limited to 'compiler/GHC/Hs')
-rw-r--r-- | compiler/GHC/Hs/DocString.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Hs/DocString.hs b/compiler/GHC/Hs/DocString.hs index 3a557ee0e8..7e35004237 100644 --- a/compiler/GHC/Hs/DocString.hs +++ b/compiler/GHC/Hs/DocString.hs @@ -137,7 +137,7 @@ instance Outputable HsDocStringChunk where mkHsDocStringChunk :: String -> HsDocStringChunk -mkHsDocStringChunk s = HsDocStringChunk (utf8EncodeString s) +mkHsDocStringChunk s = HsDocStringChunk (utf8EncodeByteString s) -- | Create a 'HsDocString' from a UTF8-encoded 'ByteString'. mkHsDocStringChunkUtf8ByteString :: ByteString -> HsDocStringChunk |