on master help sign in
Fix Haddocks

--HG-- extra : convert_revision : de2ceb4afe3fb2418470beb76bec7ec9b46e6b90

commit960d36a97112f03fd68b4dde48bc4338fb72bf08 authorBryan O'Sullivan <bos@serpentine.com> dateFri 27 Feb 2009, 07:33 (18 years ago) parent749282a
2 files changed+9−6
Data/Text/Encoding.hs+4−1 Data/Text/Encoding/Fusion.hs+5−5
Data/Text/Encoding.hs+4−1
@@ -11,7 +11,10 @@
1111-- Portability : portable
1212--
1313-- Functions for converting 'Text' values to and from 'ByteString',
14−-- using several common encodings.
14+-- using several standard encodings.
15+--
16+-- To make use of a much larger variety of encodings, use the @text-icu@
17+-- package.
1518
1619module Data.Text.Encoding
1720 (
Data/Text/Encoding/Fusion.hs+5−5
@@ -76,7 +76,7 @@ streamASCII bs = Stream next 0 l
7676 x1 = B.unsafeIndex bs i
7777{-# INLINE [0] streamASCII #-}
7878
79−-- | /O(n) Convert a 'ByteString' into a 'Stream Char', using UTF-8
79+-- | /O(n)/ Convert a 'ByteString' into a 'Stream Char', using UTF-8
8080-- encoding.
8181streamUtf8 :: ByteString -> Stream Char
8282streamUtf8 bs = Stream next 0 l
@@ -98,7 +98,7 @@ streamUtf8 bs = Stream next 0 l
9898 idx = B.unsafeIndex bs
9999{-# INLINE [0] streamUtf8 #-}
100100
101−-- | /O(n) Convert a 'ByteString' into a 'Stream Char', using little
101+-- | /O(n)/ Convert a 'ByteString' into a 'Stream Char', using little
102102-- endian UTF-16 encoding.
103103streamUtf16LE :: ByteString -> Stream Char
104104streamUtf16LE bs = Stream next 0 l
@@ -116,7 +116,7 @@ streamUtf16LE bs = Stream next 0 l
116116 idx = fromIntegral . B.unsafeIndex bs :: Int -> Word16
117117{-# INLINE [0] streamUtf16LE #-}
118118
119−-- | /O(n) Convert a 'ByteString' into a 'Stream Char', using big
119+-- | /O(n)/ Convert a 'ByteString' into a 'Stream Char', using big
120120-- endian UTF-16 encoding.
121121streamUtf16BE :: ByteString -> Stream Char
122122streamUtf16BE bs = Stream next 0 l
@@ -134,7 +134,7 @@ streamUtf16BE bs = Stream next 0 l
134134 idx = fromIntegral . B.unsafeIndex bs :: Int -> Word16
135135{-# INLINE [0] streamUtf16BE #-}
136136
137−-- | /O(n) Convert a 'ByteString' into a 'Stream Char', using big
137+-- | /O(n)/ Convert a 'ByteString' into a 'Stream Char', using big
138138-- endian UTF-32 encoding.
139139streamUtf32BE :: ByteString -> Stream Char
140140streamUtf32BE bs = Stream next 0 l
@@ -154,7 +154,7 @@ streamUtf32BE bs = Stream next 0 l
154154 idx = fromIntegral . B.unsafeIndex bs :: Int -> Word32
155155{-# INLINE [0] streamUtf32BE #-}
156156
157−-- | /O(n) Convert a 'ByteString' into a 'Stream Char', using little
157+-- | /O(n)/ Convert a 'ByteString' into a 'Stream Char', using little
158158-- endian UTF-32 encoding.
159159streamUtf32LE :: ByteString -> Stream Char
160160streamUtf32LE bs = Stream next 0 l