-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Sometimes it's useful to have Binding that unbinds some input symbols.
For example,
data Input = A | B | C
bound_A :: Binding s Input
bound_A = binds $ on A `run` putStrLn "hoge"
unbind_A :: Binding s Input
unbind_A = ... -- something that unbind input AThen,
bound_A <> unbind_A == mempty
unbind_A <> bound_A == bound_AThis can be implemented by changing the value type of Binding map from Action ... to Maybe (Action ...). Because Binding and Binder are opaque, the change would be additive (i.e. no need to major version bump).