Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FromNamedRecord and number of rows with values less than rows in file #220

Open
peterstorm opened this issue Jan 19, 2023 · 0 comments
Open

Comments

@peterstorm
Copy link

peterstorm commented Jan 19, 2023

Hello!

I'm trying to parse individual chunks of a CSV file into Haskell datatypes, and I have a column that only has one row with a value, and the file has maybe 10 rows.

Is it not possible to just parse a FromNamedRecord with decodeByName and it just stops, when it doesn't see any more values in the rows?

I get a conversion error, because it tries to read from an empty row/value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant