Frames icon indicating copy to clipboard operation
Frames copied to clipboard

Quoting fields when using writeCSV

Open MMesch opened this issue 2 years ago • 1 comments

Hey, it seems writeCSV isn't quoting fields, even if writeDSV is used with ParserOptions that include quoting. Maybe something to add here: https://github.com/acowley/Frames/blob/master/src/Frames/ShowCSV.hs#L9-L11 ?

MMesch avatar Jul 11 '23 12:07 MMesch

Investigating this a bit further I wonder why functions such as produceDSV use the showCSV instance instead of simply Show which seems to do quoting automatically :thinking: . writeFile "data.csv" $ showFrame "," frame seems to do exactly the right thing.

MMesch avatar Jul 11 '23 13:07 MMesch