You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It represents the ability to convert errors of type a to errors of type s and match back. Obvious law: match . as = Just. It can be used not only for errors, but this is its main goal.
@vrom911 I believe this approach can be implemented now and our projects still can use monomorphic PgNamedError without need to migrate to this approach. What do you think, should we do it now and use it later when we're ready?
I propose to introduce the following typeclass:
It represents the ability to convert errors of type
a
to errors of types
and match back. Obvious law:match . as = Just
. It can be used not only for errors, but this is its main goal.So the type signature of a function like this:
will become
with a trivial instance for
PgNamedError
:The text was updated successfully, but these errors were encountered: