[#69] Replace `Wrapped` with custom typeclass that allows `deriving anyclass`
Description
Problem: Wrapped
is a thing from lens
which allows understanding newtype content.
It would be nice to replace it with a custom typeclass for a couple of reasons:
-
Wrapped
cannot be used withinderiving anyclass
clause, one has to declare a standalone instance, and if we make a copy ofWrapped
with the type family but without methods, then the problem will be resolved. -
Our custom typeclass can be documented, it would be nice to have exact use cases for it described.
Solution: Replace Wrapped
with custom typeclass that is the same as
Wrapped
without its method.
Related issue(s)
Resolves #69 (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.
Edited by Moremi Vannak