Fully featured CSV parser for Haskell?

后端 未结 5 1684
长发绾君心
长发绾君心 2021-02-07 05:26

Can anybody recommend a way to parse CSV files with options to:

  • set cells/fields separator
  • set end of record/row terminator
  • set quote-character f
5条回答
  •  长发绾君心
    2021-02-07 05:38

    Cassava works in memory and is very simple library e.g.

    encode [("John" :: Text, 27), ("Jane", 28)]
    "John,27\r\nJane,28\r\n"
    

提交回复
热议问题