Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
An effect used internally to execute handlers when Neovim variables are changed.
Synopsis
- newtype WatchedVariable = WatchedVariable {}
- data VariableWatcher :: Effect where
- Update :: VariableWatcher m ()
- Unwatch :: WatchedVariable -> VariableWatcher m ()
- update :: Member VariableWatcher r => Sem r ()
- unwatch :: Member VariableWatcher r => WatchedVariable -> Sem r ()
Documentation
newtype WatchedVariable Source #
The name of a variable that Ribosome should watch for changes.
Instances
IsString WatchedVariable Source # | |
Defined in Ribosome.Effect.VariableWatcher fromString :: String -> WatchedVariable # | |
Show WatchedVariable Source # | |
Defined in Ribosome.Effect.VariableWatcher showsPrec :: Int -> WatchedVariable -> ShowS # show :: WatchedVariable -> String # showList :: [WatchedVariable] -> ShowS # | |
Eq WatchedVariable Source # | |
Defined in Ribosome.Effect.VariableWatcher (==) :: WatchedVariable -> WatchedVariable -> Bool # (/=) :: WatchedVariable -> WatchedVariable -> Bool # | |
Ord WatchedVariable Source # | |
Defined in Ribosome.Effect.VariableWatcher compare :: WatchedVariable -> WatchedVariable -> Ordering # (<) :: WatchedVariable -> WatchedVariable -> Bool # (<=) :: WatchedVariable -> WatchedVariable -> Bool # (>) :: WatchedVariable -> WatchedVariable -> Bool # (>=) :: WatchedVariable -> WatchedVariable -> Bool # max :: WatchedVariable -> WatchedVariable -> WatchedVariable # min :: WatchedVariable -> WatchedVariable -> WatchedVariable # |
data VariableWatcher :: Effect where Source #
An effect used internally to execute handlers when Neovim variables are changed.
Update :: VariableWatcher m () | Called when the internal logic determines that variables should be examined for updates. |
Unwatch :: WatchedVariable -> VariableWatcher m () | Stop running update handlers for the given variable. |
update :: Member VariableWatcher r => Sem r () Source #
Called when the internal logic determines that variables should be examined for updates.
unwatch :: Member VariableWatcher r => WatchedVariable -> Sem r () Source #
Stop running update handlers for the given variable.