helic-0.6.1.0: Clipboard Manager
Safe HaskellSafe-Inferred
LanguageGHC2021

Helic.Effect.Agent

Description

The Agent effect abstracts a clipboard synchronization target.

Synopsis

Documentation

data AgentTag Source #

Used to disambiguate Agents via Tagged.

Constructors

AgentTag Symbol 

data Agent :: Effect where Source #

An agent is an interface to an external entity that can receive clipboard events. The Helic CLI uses agents for remote hosts over network, tmux, and X11.

Constructors

Update :: Event -> Agent m ()

Send an event to an agent.

update :: forall r. Member Agent r => Event -> Sem r () Source #

Send an event to an agent.

type Agents = [Agent @@ AgentTmux, Agent @@ AgentX, Agent @@ AgentNet] Source #

The default agents for the Helic CLI.