spreadsheet: Read and write spreadsheets from and to CSV files in a lazy way
Read and write spreadsheets from and to files
containing comma separated values (CSV) in a lazy way.
See also the
csv package http://hackage.haskell.org/package/csv and
http://www.xoltar.org/languages/haskell.html,
http://www.xoltar.org/languages/haskell/CSV.hs.
Both do not parse lazy.
Reading from other source than plain Strings could be easily added.
If you install this package by
cabal install -fbuildExamples
then an example program is compiled and installed, too.
This program fills a template text using data from a CSV file.
E.g. given a file template.txt with content
Name: FIRSTNAME SURNAME Born: BIRTH
and names.csv with content
"FIRSTNAME","SURNAME",BIRTH "Georg","Cantor",1845 "Haskell","Curry",1900 "Ada","Lovelace",1815
the call
csvreplace template.txt <names.csv
produces the output
Name: Georg Cantor Born: 1845 Name: Haskell Curry Born: 1900 Name: Ada Lovelace Born: 1815
You may also generate one file per CSV row in the following manner:
csvreplace --multifile=FIRSTNAME-SURNAME.txt template.txt <names.csv
For similar (non-Haskell) programs see cut, csvfix, csvtool.
Flags
Automatic Flags
| Name | Description | Default | 
|---|---|---|
| buildexamples | Build example executables | Disabled | 
| splitbase | Choose the new smaller, split-up base package. | Enabled | 
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- spreadsheet-0.1.3.3.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1, 0.1.1, 0.1.1.1, 0.1.2, 0.1.2.1, 0.1.3, 0.1.3.1, 0.1.3.2, 0.1.3.3, 0.1.3.4, 0.1.3.5, 0.1.3.6, 0.1.3.7, 0.1.3.8, 0.1.3.9, 0.1.3.10 | 
|---|---|
| Dependencies | base (>=1.0 && <5), bytestring (>=0.9 && <0.11), explicit-exception (>=0.1 && <0.2), transformers (>=0.2 && <0.5), utility-ht (>=0.0.2 && <0.1) [details] | 
| Tested with | ghc ==6.8.2, ghc ==6.12.3 | 
| License | BSD-3-Clause | 
| Author | Henning Thielemann <haskell@henning-thielemann.de> | 
| Maintainer | Henning Thielemann <haskell@henning-thielemann.de> | 
| Category | Data, Text | 
| Home page | http://www.haskell.org/haskellwiki/Spreadsheet | 
| Source repo | head: darcs get http://code.haskell.org/~thielema/spreadsheet/ this: darcs get http://code.haskell.org/~thielema/spreadsheet/ --tag 0.1.3.3 | 
| Uploaded | by HenningThielemann at 2014-08-09T21:00:32Z | 
| Distributions | LTSHaskell:0.1.3.10, NixOS:0.1.3.10, Stackage:0.1.3.10 | 
| Reverse Dependencies | 1 direct, 0 indirect [details] | 
| Executables | csvreplace | 
| Downloads | 12228 total (28 in the last 30 days) | 
| Rating | (no votes yet) [estimated by Bayesian average] | 
| Your Rating | |
| Status | Docs available [build log] Successful builds reported [all 1 reports] |