<div dir="ltr">I'm somewhat weakly against these, simply because they haven't seen broad adoption in the wild in any of the attempts to introduce them elsewhere, and they don't quite fit the naming convention of the other Foo1 classes in Data.Functor.Classes<div><br></div><div>Eq1 f says more or less that Eq a => Eq (f a).</div><div><br></div><div>Semigroup1 in your proposal makes a stronger claim. Semgiroup1 f  is saying forall a. (f a) is a semigroup parametrically. Both of these constructions could be useful, but they ARE different constructions.</div><div><br></div><div>If folks had actually been using, say, the Plus and Alt classes from semigroupoids or the like more or less at all pretty much anywhere, I could maybe argue towards bringing them up towards base, but I've seen almost zero adoption of the ideas over multiple years -- and these represent yet _another_ point in the design space where we talk about semigroupal and monoidal structures where f is a Functor instead. =/</div><div><br></div><div>Many points in the design space, and little demonstrated will for adoption seems to steers me to think that the community isn't ready to pick one and enshrine it some place central yet.</div><div><br></div><div>Overall, -1.</div><div><br></div><div>-Edward</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 30, 2016 at 7:25 PM, David Feuer <span dir="ltr"><<a href="mailto:david.feuer@gmail.com" target="_blank">david.feuer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">I've been playing around with the idea of writing Haskell 2010 type classes for finite sequences and non-empty sequences, somewhat similar to Michael Snoyman's Sequence class in mono-traversable. These are naturally based on Monoid1 and Semigroup1, which I think belong in base.</p>
<p dir="ltr">class Semigroup1 f where<br>
  (<<>>) :: f a -> f a -> f a<br>
class Semigroup1 f => Monoid1 f where<br>
  mempty1 :: f a</p>
<p dir="ltr">Then I can write</p>
<p dir="ltr">class (Monoid1 t, Traversable t) => Sequence t where<br>
  singleton :: a -> t a<br>
  -- and other less-critical methods</p>
<p dir="ltr">class (Semigroup1 t, Traversable1 t) => NESequence where<br>
  singleton1 :: a -> t a<br>
  -- etc.</p>
<p dir="ltr">I can, of course, just write my own, but I don't think I'm the only one using such.<br></p>
<br>______________________________<wbr>_________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/libraries</a><br>
<br></blockquote></div><br></div>