Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 649 Bytes

README.md

File metadata and controls

51 lines (41 loc) · 649 Bytes

scythe

Fast, RFC-4180 compliant, CSV lexing.

Example

{-# LANGUAGE OverloadedStrings #-}
module Main (main) where

import Data.CSV
import Data.ByteString.Lazy

-- | test.csv
testCSV :: ByteString
testCSV = "1,2,3,4,5\n1,2,3,4,5\n"

main :: IO ()
main = mapM_ print (getCSV testCSV)

Result

Item "1"
Item "2"
Item "3"
Item "4"
Item "5"
Newline
Item "1"
Item "2"
Item "3"
Item "4"
Item "5"
Newline

Build

nix-build

Develop

git clone https://github.com/dmjio/scythe
cd scythe
nix-shell
cabal (new-)build