Library for reading/writing files in CSV format. Files in CSV (comma separated values) format can be imported and exported by most spreadsheed and database applications.
writeCSVFile
:: String -> [[String]] -> IO ()
Writes a list of records (where each record is a list of strings) into a file in CSV format.
:: String
|
the name of the result file (with standard suffix ".csv") |
-> [[String]]
|
the list of rows |
-> IO ()
|
showCSV
:: [[String]] -> String
Shows a list of records (where each record is a list of strings) as a string in CSV format.
readCSVFile
:: String -> IO [[String]]
Reads a file in CSV format and returns the list of records (where each record is a list of strings).
:: String
|
the name of the result file (with standard suffix ".csv") |
-> IO [[String]]
|
readCSVFileWithDelims
:: String -> String -> IO [[String]]
Reads a file in CSV format and returns the list of records (where each record is a list of strings).
:: String
|
the list of characters considered as delimiters |
-> String
|
the name of the result file (with standard suffix ".csv") |
-> IO [[String]]
|
readCSV
:: String -> [[String]]
Reads a string in CSV format and returns the list of records (where each record is a list of strings).
:: String
|
the string in CSV format |
-> [[String]]
|
readCSVWithDelims
:: String -> String -> [[String]]
Reads a string in CSV format and returns the list of records (where each record is a list of strings).
:: String
|
the list of characters considered as delimiters |
-> String
|
the string in CSV format |
-> [[String]]
|