Skip to content

dmjio/scythe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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