Skip to content

Semigroup instance inverted #33

@Profpatsch

Description

@Profpatsch
ghci> sconcat (First 'a' :| [First 'b'])
First {getFirst = 'a'}
ghci> sconcat ((Rec.rnil & Rec.rcons (#foo Rec.:= First 'a')) :| [(Rec.rnil & Rec.rcons (#foo Rec.:= First 'b'))])
[("foo","First {getFirst = 'b'}")]

I’d expect both to return the same result, since all I did was to wrap the First in a #foo field …

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions