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

What is the meaning of Adjustable? #418

Open
parenthetical opened this issue May 3, 2020 · 0 comments
Open

What is the meaning of Adjustable? #418

parenthetical opened this issue May 3, 2020 · 0 comments

Comments

@parenthetical
Copy link
Contributor

It looks like something I could make use of but I'm having a hard time wrapping my head around it.

Would it be something like this for the pure implementation?

instance ( Enum t, HasTrie t, Ord t, t' ~ Pure t
         ) => Adjustable (Pure t) ((->) t) where
  runWithReplace :: (t -> a) -> Event t' (t -> b) -> t -> (a, Event t' b)
  runWithReplace ma (Event e) from = (ma from, Event (fmap ($ from) . e))
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

No branches or pull requests

1 participant