]> git.immae.eu Git - github/fretlink/text-pipes.git/commitdiff
rearranged internal modules to placate haddock
authormichaelt <what_is_it_to_do_anything@yahoo.com>
Wed, 5 Feb 2014 10:00:39 +0000 (05:00 -0500)
committermichaelt <what_is_it_to_do_anything@yahoo.com>
Wed, 5 Feb 2014 10:00:39 +0000 (05:00 -0500)
.DS_Store
Pipes/Text/Internal.hs
Pipes/Text/Internal/Codec.hs
Pipes/Text/Internal/Decoding.hs
changelog
pipes-text.cabal

index 5008ddfcf53c02e82d7eee2e57c38e5672ef89f6..a67b8b2d4ae60e498f8b5b821d926bed7adb7ba4 100644 (file)
Binary files a/.DS_Store and b/.DS_Store differ
index 2530b23d3430141cbca5e2bd0d76c78114f01ac4..582ef14e0b3714ef47ff450930377221287b6153 100644 (file)
@@ -1,15 +1,7 @@
 module Pipes.Text.Internal
-    ( Decoding(..)
-    , streamDecodeUtf8
-    , decodeSomeUtf8
-    , Codec(..)
-    , TextException(..)
-    , utf8
-    , utf16_le
-    , utf16_be
-    , utf32_le
-    , utf32_be
+    (module Pipes.Text.Internal.Codec
+    , module Pipes.Text.Internal.Decoding
     ) where
 
-import Pipes.Text.Internal.Decoding
-import Pipes.Text.Internal.Codec
\ No newline at end of file
+import Pipes.Text.Internal.Codec
+import Pipes.Text.Internal.Decoding
\ No newline at end of file
index 63cbd740b77195946a06940ff73c144466e20745..075a1520795b64e8be713cc26723db071c0df5b6 100644 (file)
@@ -4,17 +4,15 @@
 -- Copyright: 2014 Michael Thompson, 2011 Michael Snoyman, 2010-2011 John Millikin
 -- License: MIT
 --  This Parts of this code were taken from enumerator and conduits, and adapted for pipes
-{- | This module follows the model of the enumerator and conduits libraries, and defines
-     'Codec' s for various encodings. Note that we do not export a 'Codec' for ascii and 
-     iso8859_1. A 'Lens' in the sense of the pipes library cannot be defined for these, so
-     special functions appear in @Pipes.Text@
--}
+
+-- This module follows the model of the enumerator and conduits libraries, and defines
+-- 'Codec' s for various encodings. Note that we do not export a 'Codec' for ascii and 
+-- iso8859_1. A 'Lens' in the sense of the pipes library cannot be defined for these, so
+-- special functions appear in @Pipes.Text@
+
 
 module Pipes.Text.Internal.Codec
-    ( Decoding(..)
-    , streamDecodeUtf8
-    , decodeSomeUtf8
-    , Codec(..)
+    ( Codec(..)
     , TextException(..)
     , utf8
     , utf16_le
index 4b4bbe6094899272733bff84eee5b18a3814336e..b5d928a0364090259f65b8641a45d1e3e6bea505 100644 (file)
@@ -2,11 +2,10 @@
 {-# LANGUAGE GeneralizedNewtypeDeriving, MagicHash, UnliftedFFITypes #-}
 {-# LANGUAGE DeriveDataTypeable, RankNTypes #-}
 
-{- |
-This module lifts assorted materials from Brian O'Sullivan's text package 
-especially @Data.Text.Encoding@ in order to define a pipes-appropriate
-'streamDecodeUtf8'
--} 
+-- This module lifts assorted materials from Brian O'Sullivan's text package 
+-- especially @Data.Text.Encoding@ in order to define a pipes-appropriate
+-- 'streamDecodeUtf8'
+
 module Pipes.Text.Internal.Decoding 
     ( Decoding(..)
     , streamDecodeUtf8
@@ -43,9 +42,13 @@ import Data.Maybe (catMaybes)
 
 
 
--- | A stream oriented decoding result. Distinct from the similar type in @Data.Text.Encoding@
-data Decoding = Some Text ByteString (ByteString -> Decoding) -- | Text, continuation and any undecoded fragment.
-              | Other Text ByteString  -- | Text followed by an undecodable ByteString
+--  A stream oriented decoding result. Distinct from the similar type in Data.Text.Encoding
+
+data Decoding = Some Text ByteString (ByteString -> Decoding) 
+               -- Text, continuation and any undecoded fragment.
+              | Other Text ByteString  
+              --  Text followed by an undecodable ByteString
+              
 instance Show Decoding where
     showsPrec d (Some t bs _) = showParen (d > prec) $
                                 showString "Some " . showsPrec prec' t .
@@ -61,7 +64,7 @@ instance Show Decoding where
 newtype CodePoint = CodePoint Word32 deriving (Eq, Show, Num, Storable)
 newtype DecoderState = DecoderState Word32 deriving (Eq, Show, Num, Storable)
 
--- | Resolve a 'ByteString' into 'Text' and a continuation that can handle further 'ByteStrings'. 
+--  Resolve a 'ByteString' into 'Text' and a continuation that can handle further 'ByteStrings'. 
 streamDecodeUtf8 :: ByteString -> Decoding
 streamDecodeUtf8 = decodeChunkUtf8 B.empty 0 0 
   where
@@ -95,7 +98,7 @@ streamDecodeUtf8 = decodeChunkUtf8 B.empty 0 0
   {-# INLINE decodeChunkUtf8 #-}
 {-# INLINE streamDecodeUtf8 #-}
 
--- | Resolve a ByteString into an initial segment of intelligible 'Text' and whatever is unintelligble
+--  Resolve a ByteString into an initial segment of intelligible 'Text' and whatever is unintelligble
 decodeSomeUtf8 :: ByteString -> (Text, ByteString)
 decodeSomeUtf8 bs@(PS fp off len) = runST $ do 
   dest <- A.new (len+1) 
index 631aed3a864851955755b2b8dd0286da3aa79346..65690024952a5af2bfdb5a7dfe4a883f3420fb66 100644 (file)
--- a/changelog
+++ b/changelog
@@ -1,3 +1,18 @@
+ # Version 0.0.0.5
+ * Rearranged internal modules
+
+
+ # Version 0.0.0.4
+
+ * Altered bad haddock markup
+
+
+ # Version 0.0.0.3
+ * Actually added changelog
+
+
  # Version 0.0.0.2
 
  * Omit `stdinLn` as likely to be dangerous through misunderstanding.
index cb828a727084b95a863ace2eb38f7d758dda7316..c5b47d0dcb7e3c6b70b992f19f802b5bd9b28369 100644 (file)
@@ -1,5 +1,5 @@
 name:                pipes-text
-version:             0.0.0.2
+version:             0.0.0.4
 synopsis:            Text pipes.
 description:         Many of the pipes and other operations defined here mirror those in
                      the `pipes-bytestring` library. Folds like `length` and grouping 
@@ -31,7 +31,7 @@ category:            Text, Pipes
 build-type:          Simple
 cabal-version:       >=1.10
 
-extra-source-files: README.md include/*.h
+extra-source-files: README.md include/*.h changelog
 source-repository head
     type: git
     location: https://github.com/michaelt/text-pipes