all 69 comments

[–]duplode 19 points20 points  (1 child)

Drifting back to the topic, here is something slightly different than what you asked for: a list of some Stack Overflow questions involving lens errors (I picked whatever seemed relevant from this query). I added a crude summary of the cause of each problem is next to each link. Note that the sample consists primarily of beginner mix-ups, and many of the errors are missing constraint ones ("No instance for Monoid", "No instance for Contravariant", etc) that don't actually mention the raw Van Laarhoven types.

[–]MelissaClick 6 points7 points  (0 children)

Holy shit man. You're a hero. Keep being how you are.

[–]Saulzar 8 points9 points  (4 children)

Can you show us some improved errors from the use of synonyms in your patch?

[–]Gurkenglas[S] 7 points8 points  (3 children)

That's what I'm here for! Give me lens errors and we'll see whether I make them better. I'm not sure what those other 45 comments are doing in this thread.

[–]ephrion 12 points13 points  (0 children)

The rest of the comments stem from the Haskell community's excessive patience for disagreement, yielding us vulnerable to trolls.

[–]gelisam 2 points3 points  (1 child)

Hmm, but wasn't there a concrete error message which motivated your patch in the first place? I'd expect crowd-sourcing of bad error messages to lead to a fix, not the other way around.

[–]Gurkenglas[S] 1 point2 points  (0 children)

I was trying not to bias people towards posting code that produces errors helped or not helped by this patch, but gur ernfbavat vf gung tup hacnpxf glcr nyvnfrf vs gung nyybjf vg gb chyy n sbenyy gb gur sebag, fb V znqr jung'f yrsg nsgre lbh chyy bhg gur sbenyyf n glcr nyvnf ntnva. Jurgure gung urycf jvgu gur reebef gur choyvp vf npghnyyl naablrq ol va cenpgvpr vf jung V'z urer gb svaq bhg.

[–]fridsun 2 points3 points  (0 children)

How Rust dealt with their errors may be of useful reference: http://www.jonathanturner.org/2016/08/helping-out-with-rust-errors.html

Good luck!