ribosome-0.9.9.9: Neovim plugin framework for Polysemy
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ribosome.Effect.VariableWatcher

Description

An effect used internally to execute handlers when Neovim variables are changed.

Synopsis

Documentation

data VariableWatcher :: Effect where Source #

An effect used internally to execute handlers when Neovim variables are changed.

Constructors

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.