-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Read and write spreadsheets from and to CSV files in a lazy way -- -- Read and write spreadsheets from and to CSV files in a lazy way. See -- also the csv package on Hackage 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. @package spreadsheet @version 0.1 module Data.Spreadsheet -- | A spreadsheet is a list of lines, each line consists of cells, and -- each cell is a string. Ideally, spreadsheets read from a CSV file have -- lines with the same number of cells per line. However, we cannot -- assert this, and thus we parse the lines as they come in. type T = [[String]] -- | fromString qm sep text parses text into a -- spreadsheet, using the quotation character qm and the -- separator character sep. fromString :: Char -> Char -> String -> Exceptional UserMessage T fromStringSimple :: Char -> Char -> String -> T toString :: Char -> Char -> T -> String toStringSimple :: Char -> Char -> T -> String