Popularity
7.4
Declining
Activity
0.0
Stable
19
6
3

Monthly Downloads: 70
Programming language: Haskell
License: MIT License
Tags: Data     Pipes     CSV    
Latest version: v1.4.3

pipes-csv alternatives and similar packages

Based on the "CSV" category.
Alternatively, view pipes-csv alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of pipes-csv or a related project?

Add another 'CSV' Package

README

pipes-csv

Constant-space streaming csv parsing with cassava and pipes

build status

Installation

Install with cabal

$ cabal install pipes-csv

Example

{-# LANGUAGE OverloadedStrings #-}

import Pipes.Csv (decode, decodeByName)
import Pipes.ByteString (stdin, ByteString)
import Data.Csv ((.:), FromNamedRecord(..), Record)
import Pipes
import Control.Applicative

data Person = Person String Int
            deriving (Show)

instance FromNamedRecord Person where
  parseNamedRecord p =
    Person <$> p .: "name"
           <*> p .: "age"

persons :: Monad m
        => Producer ByteString m ()
        -> Producer (Either String Person) m ()
persons = decodeByName

main = runEffect $ for (persons stdin) (lift . print)

License

MIT


*Note that all licence references and agreements mentioned in the pipes-csv README section above are relevant to that project's source code only.