Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix Haddocks

--HG--
extra : convert_revision : de2ceb4afe3fb2418470beb76bec7ec9b46e6b90
  • Loading branch information...
commit 960d36a97112f03fd68b4dde48bc4338fb72bf08 1 parent 749282a
@bos authored
Showing with 9 additions and 6 deletions.
  1. +4 −1 Data/Text/Encoding.hs
  2. +5 −5 Data/Text/Encoding/Fusion.hs
View
5 Data/Text/Encoding.hs
@@ -11,7 +11,10 @@
-- Portability : portable
--
-- Functions for converting 'Text' values to and from 'ByteString',
--- using several common encodings.
+-- using several standard encodings.
+--
+-- To make use of a much larger variety of encodings, use the @text-icu@
+-- package.
module Data.Text.Encoding
(
View
10 Data/Text/Encoding/Fusion.hs
@@ -76,7 +76,7 @@ streamASCII bs = Stream next 0 l
x1 = B.unsafeIndex bs i
{-# INLINE [0] streamASCII #-}
--- | /O(n) Convert a 'ByteString' into a 'Stream Char', using UTF-8
+-- | /O(n)/ Convert a 'ByteString' into a 'Stream Char', using UTF-8
-- encoding.
streamUtf8 :: ByteString -> Stream Char
streamUtf8 bs = Stream next 0 l
@@ -98,7 +98,7 @@ streamUtf8 bs = Stream next 0 l
idx = B.unsafeIndex bs
{-# INLINE [0] streamUtf8 #-}
--- | /O(n) Convert a 'ByteString' into a 'Stream Char', using little
+-- | /O(n)/ Convert a 'ByteString' into a 'Stream Char', using little
-- endian UTF-16 encoding.
streamUtf16LE :: ByteString -> Stream Char
streamUtf16LE bs = Stream next 0 l
@@ -116,7 +116,7 @@ streamUtf16LE bs = Stream next 0 l
idx = fromIntegral . B.unsafeIndex bs :: Int -> Word16
{-# INLINE [0] streamUtf16LE #-}
--- | /O(n) Convert a 'ByteString' into a 'Stream Char', using big
+-- | /O(n)/ Convert a 'ByteString' into a 'Stream Char', using big
-- endian UTF-16 encoding.
streamUtf16BE :: ByteString -> Stream Char
streamUtf16BE bs = Stream next 0 l
@@ -134,7 +134,7 @@ streamUtf16BE bs = Stream next 0 l
idx = fromIntegral . B.unsafeIndex bs :: Int -> Word16
{-# INLINE [0] streamUtf16BE #-}
--- | /O(n) Convert a 'ByteString' into a 'Stream Char', using big
+-- | /O(n)/ Convert a 'ByteString' into a 'Stream Char', using big
-- endian UTF-32 encoding.
streamUtf32BE :: ByteString -> Stream Char
streamUtf32BE bs = Stream next 0 l
@@ -154,7 +154,7 @@ streamUtf32BE bs = Stream next 0 l
idx = fromIntegral . B.unsafeIndex bs :: Int -> Word32
{-# INLINE [0] streamUtf32BE #-}
--- | /O(n) Convert a 'ByteString' into a 'Stream Char', using little
+-- | /O(n)/ Convert a 'ByteString' into a 'Stream Char', using little
-- endian UTF-32 encoding.
streamUtf32LE :: ByteString -> Stream Char
streamUtf32LE bs = Stream next 0 l
Please sign in to comment.
Something went wrong with that request. Please try again.