[#898] Simplify some machinery using instances from `some`
I was agonizing way too long about whether to switch to Some
in Address
and SomeAlias
. I didn't arrive to a conclusion. Long story short, it's more efficient (as it's a newtype under the hood), and semantically seems more correct than Constrained
with a truthy constraint. But it needs more instances, both derived and manual, and working with it requires importing a bit of stuff from some
, i.e. downstream packages have to add some
to their dependencies.
Description
Problem: we can make use of the same machinery used by some
, like GEq
,
GCompare
, ArgDict
, to get rid of some awkward boilerplate.
Solution: Do that.
Related issue(s)
Resolves #898 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.