We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HasAny
https://hackage.haskell.org/package/generic-optics-2.2.1.0/docs/Data-Generics-Product-Any.html
Basically,
instance {-# OVERLAPPING #-} HasAny () s s () () where the = united instance HasAny s s s s s where the = castOptic equality
Usage:
>>> human ^. the @() () -- Always type checks and returns () >>> human ^. the @Human == human True -- ^ equivalent to `id`
Do these make sense? With this in place, I am able to simplify the API of srid/ema#108
The text was updated successfully, but these errors were encountered:
If breaking the self-referential record fields case is a concern (which is valid) we can derive on types from the k -> Type kind instead, viz.:
k -> Type
instance HasAny (Const () :: k -> Type) s s () () where the = united instance HasAny (Identity :: Type -> Type) s s s s where the = castOptic equality
Sorry, something went wrong.
No branches or pull requests
https://hackage.haskell.org/package/generic-optics-2.2.1.0/docs/Data-Generics-Product-Any.html
Basically,
Usage:
Do these make sense? With this in place, I am able to simplify the API of srid/ema#108
The text was updated successfully, but these errors were encountered: