Hi Mark,
Yes I would favour Rebecca's approach in her book to use Semigroup. Personally I never think of lists as Monads, as I see this instance useful only to power list comprehension.
Concatenation with (<>) is more meaningful and holds better
semantics than (<|>), described as just "An associative
binary operation". It's so vague it could be the documentation
for a Magma typeclass, and the name "Alternative" is quite loaded
(we think especially of parsers when thinking/seeing Alternative).
Cheers,
Hécate
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
-- Hécate ✨ 🐦: @TechnoEmpress IRC: Hecate WWW: https://glitchbra.in RUN: BSD