Closed fommil closed 6 years ago
Have you named all 7+ flavors of invariant yet? ;)
I'd probably just say something self-descriptive like InvariantApplicative
and InvariantAlternative
, but I have little interest in packaging them myself.
Lol, I did start that way then threw them out and now left with only this one, which is the most practical. InvariantAlt is one I did consider... there is precedent since InvariantFunctor exists, even though the logic is a bit warped here since CovariantAlt isn't a thing.
InvariantAlt it is!
Certainly better than AltRight.
In scalaz I introduced an invariant parent of Alt and Decidable. I'm calling it
Derives
, but I don't like the name (it has a name collision with a more important thing calledDeriving
).If you've ever seen UK tv, the potential name
AltAndDec
will bring horrific images to mind :smile: ... do you have any suggestions?