From d5ee40e62ba9eeb7298a836b13e6cf50758f3332 Mon Sep 17 00:00:00 2001 From: Simon Jakobi Date: Wed, 17 Dec 2025 19:19:37 +0100 Subject: [PATCH] Haddocks: Hyperlink some identifiers and modules --- src/Data/Text/Encoding.hs | 2 +- src/Data/Text/IO.hs | 2 +- src/Data/Text/IO/Utf8.hs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Data/Text/Encoding.hs b/src/Data/Text/Encoding.hs index 1a799b88..83ac9950 100644 --- a/src/Data/Text/Encoding.hs +++ b/src/Data/Text/Encoding.hs @@ -211,7 +211,7 @@ decodeASCII bs = -- | Decode a 'ByteString' containing Latin-1 (aka ISO-8859-1) encoded text. -- -- 'decodeLatin1' is semantically equivalent to --- @Data.Text.pack . Data.ByteString.Char8.unpack@ +-- @'Data.Text.pack' . 'Data.ByteString.Char8.unpack'@ -- -- This is a total function. However, bear in mind that decoding Latin-1 (non-ASCII) -- characters to UTf-8 requires actual work and is not just buffer copying. diff --git a/src/Data/Text/IO.hs b/src/Data/Text/IO.hs index d7d611ee..aa0e7faa 100644 --- a/src/Data/Text/IO.hs +++ b/src/Data/Text/IO.hs @@ -13,7 +13,7 @@ -- The functions in this module obey the runtime system's locale, -- character set encoding, and line ending conversion settings. -- --- If you want to do I\/O using the UTF-8 encoding, use @Data.Text.IO.Utf8@, +-- If you want to do I\/O using the UTF-8 encoding, use "Data.Text.IO.Utf8", -- which is faster than this module. -- -- If you know in advance that you will be working with data that has diff --git a/src/Data/Text/IO/Utf8.hs b/src/Data/Text/IO/Utf8.hs index f5e64ced..5dede344 100644 --- a/src/Data/Text/IO/Utf8.hs +++ b/src/Data/Text/IO/Utf8.hs @@ -4,7 +4,7 @@ -- Portability : GHC -- -- Efficient UTF-8 support for text I\/O. --- Unlike @Data.Text.IO@, these functions do not depend on the locale +-- Unlike "Data.Text.IO", these functions do not depend on the locale -- and do not do line ending conversion. module Data.Text.IO.Utf8 (