Skip to content

[Question] What does the NonEmpty String list contain in namesFromLabelsWith? #276

@sir4ur0n

Description

@sir4ur0n

Function namesFromLabelsWith takes as argument a function that receives a NonEmpty String, but the documentation does not explain what this list contains.
The documented example just takes the last value of that list to obtain the Haskell type.

I have fiddled with this function in a REPL but I always get back a list of exactly 1 element.

Can you explain (and ideally, add to the function documentation) what this list may contain, besides the last element always being the Haskell field name?

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