Skip to content

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

Open
endgame wants to merge 1 commit intohedgehogqa:masterfrom
endgame:applicative-concrete
Open

Hedgehog.Internal.State: Add instance Applicative Concrete#493
endgame wants to merge 1 commit intohedgehogqa:masterfrom
endgame:applicative-concrete

Conversation

@endgame
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants