agrafix / agrafix/superrecord

Semigroup instance inverted

Open
#33 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
83
Forks
16
PR merge metrics
No merged PRs in 30d

Description

```haskell
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 …

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.