Skip to content
Browse files

re-export common Data.Csv types and operators

  • Loading branch information...
1 parent 46b1497 commit 935b951c410667f501738873cb6eeed77e8e9405 @jb55 committed Sep 23, 2013
Showing with 24 additions and 3 deletions.
  1. +24 −3 src/Pipes/Csv.hs
View
27 src/Pipes/Csv.hs
@@ -15,15 +15,20 @@ module Pipes.Csv (
-- * Decode parsed records
feedParser,
- feedHeaderParser
+ feedHeaderParser,
+
+-- * Re-exports
+-- $reexports
+ module Data.Csv
) where
import qualified Data.Csv.Incremental as CI
import qualified Data.ByteString as B
import Data.Csv.Incremental (Parser(..), HeaderParser(..))
-import Data.Csv (DecodeOptions, FromRecord,
- FromNamedRecord, defaultDecodeOptions)
+import Data.Csv (DecodeOptions, FromRecord(..), FromNamedRecord(..),
+ ToRecord(..), ToField(..), FromField(..), defaultDecodeOptions,
+ ToNamedRecord(..), Record, Field, NamedRecord, (.!), (.:), (.=))
import Data.ByteString (ByteString)
import Pipes
@@ -103,3 +108,19 @@ decodeByNameWith :: (Monad m, FromNamedRecord a)
-> Producer ByteString m ()
-> Producer (Either String a) m ()
decodeByNameWith opts src = feedHeaderParser (CI.decodeByNameWith opts) src
+
+
+-- $reexports
+--
+-- "Data.Csv" re-exports common types and operators:
+--
+-- * 'FromRecord', 'FromNamedRecord', 'ToRecord', 'ToNamedRecord'
+--
+-- * 'ToField', 'FromField'
+--
+-- * 'Record', 'Field', 'NamedRecord'
+--
+-- * '(.!)', '(.:)', '(.=)'
+--
+-- * 'DecodeOptions', 'defaultDecodeOptions'
+--

0 comments on commit 935b951

Please sign in to comment.
Something went wrong with that request. Please try again.