haskell-hvr / cassava

A CSV parsing and encoding library optimized for ease of use and high performance
http://hackage.haskell.org/package/cassava
BSD 3-Clause "New" or "Revised" License
222 stars 105 forks source link

Not clear what is meant by unpacking #198

Open chrissound opened 3 years ago

chrissound commented 3 years ago

An error of Exception: parse error (Failed reading: conversion error: cannot unpack array of length 10 into a 10-tuple. is received which does not make any sense to me.

It's converting an array to a tuple? Okay? But where is it failing? 10 into 10?

Looking up the function gives a hint with the name... But it's still not clear where it's going wrong, is it meant to be 9 into 10? 10 into 9? https://github.com/haskell-hvr/cassava/blob/2348030aec2a19f12a633bf553bf81ff59be37a5/src/Data/Csv/Conversion.hs#L579

andreasabel commented 2 years ago

Would it be possible to supply a MWE that builds out-of-the-box and demonstrates the problem?