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
The HasLog typeclass has all functions required for implementing custom lens. Since lenses are reusable, because they are just type alias, I propose to add the following field to the HasLog typeclass with the default definition:
So we need to introduce our own Lens' type alias (and reexport it) and add logActionL lens to the HasLog typeclass with the default definition (so people can implement their own definition if they want.
With this approach we won't depend on any *lens* package but still will provide lens-like interface using ideas from the following blog post:
The
HasLog
typeclass has all functions required for implementing custom lens. Since lenses are reusable, because they are just type alias, I propose to add the following field to theHasLog
typeclass with the default definition:So we need to introduce our own
Lens'
type alias (and reexport it) and addlogActionL
lens to theHasLog
typeclass with the default definition (so people can implement their own definition if they want.With this approach we won't depend on any
*lens*
package but still will provide lens-like interface using ideas from the following blog post:The text was updated successfully, but these errors were encountered: