Skip to content

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

Open
@peterstorm

Description

@peterstorm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions