Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmjio/scythe
Fast, RFC-4180 compliant, CSV lexing.
https://github.com/dmjio/scythe
csv haskell lexing
Last synced: 3 months ago
JSON representation
Fast, RFC-4180 compliant, CSV lexing.
- Host: GitHub
- URL: https://github.com/dmjio/scythe
- Owner: dmjio
- License: bsd-3-clause
- Created: 2018-09-15T16:31:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-19T01:24:17.000Z (over 6 years ago)
- Last Synced: 2024-04-15T14:22:49.060Z (9 months ago)
- Topics: csv, haskell, lexing
- Language: Haskell
- Homepage: https://tools.ietf.org/html/rfc4180#ref-4
- Size: 10.7 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
scythe
========================Fast, [RFC-4180](https://tools.ietf.org/html/rfc4180#ref-4) compliant, CSV lexing.
### Example
```haskell
{-# LANGUAGE OverloadedStrings #-}
module Main (main) whereimport 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
```haskell
Item "1"
Item "2"
Item "3"
Item "4"
Item "5"
Newline
Item "1"
Item "2"
Item "3"
Item "4"
Item "5"
Newline
```### Build
```shell
nix-build
```### Develop
```haskell
git clone https://github.com/dmjio/scythe
cd scythe
nix-shell
cabal (new-)build
```