Hi Jaap,

your CSV library is used in the Hackage2 project. I found that backup
and restore does not work with a pristine state, and the reason seems to
be a problem with your library: It either adds unnecessary newlines or
interprets empty lines at the end of the program for no apparent reason:

Prelude Text.CSV> (parseCSV "name" . printCSV) []
Right [[""]]
Prelude Text.CSV> (parseCSV "name" . printCSV) [[]]
Right [[""],[""]]
Prelude Text.CSV> (parseCSV "name" . printCSV) [[],[]]
Right [[""],[""]]
Prelude Text.CSV> (parseCSV "name" . printCSV) [["hi"],["ho"]]
Right [["hi"],["ho"],[""]]
Prelude Text.CSV> (parseCSV "name" . printCSV) [["hi"]]
Right [["hi"],[""]]
Prelude Text.CSV> 

Is that easy to fix?

Thanks,
Joachim



-- 
Joachim "nomeata" Breitner
  mail: m...@joachim-breitner.de | ICQ# 74513189 | GPG-Key: 4743206C
  JID: nome...@joachim-breitner.de | http://www.joachim-breitner.de/
  Debian Developer: nome...@debian.org

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
cabal-devel mailing list
cabal-devel@haskell.org
http://www.haskell.org/mailman/listinfo/cabal-devel

Reply via email to