Commit 035a4bb
committed
Add OverloadedLists caveat note to "Use :" hint (fixes #1602)
With OverloadedLists enabled, `\x -> [x]` and `(: [])` may have
different types: the former can produce any IsList instance
(Vector, Set, NonEmpty, ...) while the latter specialises to [a].
Applying the suggestion then produces code that no longer type-checks.
Per the maintainer's response on #1602, auto-suppression is not
warranted (OverloadedLists is uncommon), but an explanatory note is.1 parent 086bf44 commit 035a4bb
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
0 commit comments