Fast, RFC-4180 compliant, CSV lexing.
{-# 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)
Item "1"
Item "2"
Item "3"
Item "4"
Item "5"
Newline
Item "1"
Item "2"
Item "3"
Item "4"
Item "5"
Newline
nix-build
git clone https://github.com/dmjio/scythe
cd scythe
nix-shell
cabal (new-)build