Skip to content
New issue

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

Hedgehog.Internal.State: Add instance Applicative Concrete #493

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

endgame
Copy link
Contributor

@endgame endgame commented Jun 16, 2023

Make Concrete an instance of Applicative. This is useful if one wants to wrap Symbolic values in a free Applicative and "pretend" to compute on Symbolic values during an update hook. Example: package free provides retractAp :: Applicative f => Ap f a -> f a.

Inspired by this discussion

@moodmosaic
Copy link
Member

Thank you, @endgame 👍 Would it be possible to add an example in tests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants