reflex icon indicating copy to clipboard operation
reflex copied to clipboard

What is the meaning of Adjustable?

Open parenthetical opened this issue 4 years ago • 0 comments

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))

parenthetical avatar May 03 '20 14:05 parenthetical