Permalink
Browse files

Start lazy encoding code

--HG--
extra : convert_revision : 82b24c9c4626988ca28d6bf63edd99f9b48e1b1d
  • Loading branch information...
1 parent 75c1438 commit 41959432d4ceba48c8328706cd5bfe578356bf96 @bos committed Mar 8, 2009
Showing with 70 additions and 1 deletion.
  1. +37 −0 Data/Text/Lazy/Encoding.hs
  2. +30 −0 Data/Text/Lazy/Encoding/Fusion.hs
  3. +3 −1 text.cabal
View
@@ -0,0 +1,37 @@
+-- |
+-- 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)
@@ -0,0 +1,30 @@
+-- |
+-- 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
View
@@ -19,15 +19,17 @@ library
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

0 comments on commit 4195943

Please sign in to comment.