Popularity
7.3
Growing
Activity
0.0
Stable
20
7
3
Monthly Downloads: 16
Programming language: Haskell
License: MIT License
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.
-
cassava
A CSV parsing and encoding library optimized for ease of use and high performance -
csv-enumerator
An enumerator-based, flexible, constant-memory and fast CSV parser library for Haskell. -
cassava-streams
io-streams interface for the cassava CSV library.
Learn any GitHub repo in 59 seconds
Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.
Promo
getonboard.dev
Do you think we are missing an alternative of pipes-csv or a related project?
README
pipes-csv
Constant-space streaming csv parsing with cassava and pipes
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.