Bryan O'Sullivan avatar Bryan O'Sullivan committed 935c76d

Start lazy encoding code

Comments (0)

Files changed (3)

Data/Text/Lazy/Encoding.hs

+-- |
+-- Module      : Data.Text.Lazy.Encoding
+-- Copyright   : (c) Tom Harper 2008-2009,
+--               (c) Bryan O'Sullivan 2009,
+--               (c) Duncan Coutts 2009
+--
+-- License     : BSD-style
+-- Maintainer  : rtharper@aftereternity.co.uk, bos@serpentine.com,
+--               duncan@haskell.org
+-- Stability   : experimental
+-- Portability : portable
+--
+-- Functions for converting lazy 'Text' values to and from lazy
+-- 'ByteString', using several standard encodings.
+--
+-- To make use of a much larger variety of encodings, use the @text-icu@
+-- package.
+
+module Data.Text.Lazy.Encoding
+    (
+    -- * Decoding ByteStrings to Text
+    --  decodeASCII
+    --, decodeUtf8
+    --, decodeUtf16LE
+    --, decodeUtf16BE
+    --, decodeUtf32LE
+    --, decodeUtf32BE
+
+    -- * Encoding Text to ByteStrings
+    --, encodeUtf8
+    --, encodeUtf16LE
+    --, encodeUtf16BE
+    --, encodeUtf32LE
+    --, encodeUtf32BE
+    ) where
+
+import Data.ByteString.Lazy (ByteString)

Data/Text/Lazy/Encoding/Fusion.hs

+-- |
+-- Module      : Data.Text.Lazy.Encoding.Fusion
+-- Copyright   : (c) Bryan O'Sullivan 2009
+--
+-- License     : BSD-style
+-- Maintainer  : rtharper@aftereternity.co.uk, bos@serpentine.com,
+--               duncan@haskell.org
+-- Stability   : experimental
+-- Portability : portable
+--
+-- Fusible 'Stream'-oriented functions for converting between lazy
+-- 'Text' and several common encodings.
+
+module Data.Text.Lazy.Encoding.Fusion
+    (
+    -- * Streaming
+    --  streamASCII
+    --, streamUtf8
+    --, streamUtf16LE
+    --, streamUtf16BE
+    --, streamUtf32LE
+    --, streamUtf32BE
+
+    -- * Unstreaming
+    --, unstream
+
+      module Data.Text.Encoding.Fusion.Common
+    ) where
+
+import Data.Text.Encoding.Fusion.Common
     Data.Text
     Data.Text.Encoding
     Data.Text.Encoding.Fusion
-    Data.Text.Encoding.Fusion.Common
     Data.Text.Foreign
     Data.Text.Fusion
     Data.Text.Fusion.Common
     Data.Text.Lazy
+    Data.Text.Lazy.Encoding
+    Data.Text.Lazy.Encoding.Fusion
     Data.Text.Lazy.Fusion
   other-modules:
     Data.Text.Array
     Data.Text.Internal
+    Data.Text.Encoding.Fusion.Common
     Data.Text.Fusion.Internal
     Data.Text.Lazy.Internal
     Data.Text.Unsafe
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.