agrafix / agrafix/superrecord

Semigroup instance inverted

オープン
#33 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Haskell
スター
83
フォーク
16
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。