owenbot-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

CSV

Synopsis

Documentation

readCSV :: FilePath -> IO [[Text]] Source #

Reads CSV as 2-D T.Text list. If doesn't exist, creates new file with empty contents and returns []

writeCSV :: FilePath -> [[Text]] -> IO () Source #

Write CSV from 2-D T.Text list

addToCSV :: FilePath -> [[Text]] -> IO () Source #

Appends the given tabular Text data to the CSV present at the given path. If no such CSV exists, a new one is created.