helic-0.6.1.0: Clipboard Manager
Safe HaskellSafe-Inferred
LanguageGHC2021

Helic.Effect.History

Description

History Effect, Internal

Synopsis

Documentation

data History :: Effect where Source #

The core actions of the Event history.

Constructors

Get :: History m [Event]

Return the current history.

Receive :: Event -> History m ()

Process an Event received from outside.

Load :: Int -> History m (Maybe Event)

Load the Event at the given history index into the clipboards.

get :: forall r. Member History r => Sem r [Event] Source #

Return the current history.

receive :: forall r. Member History r => Event -> Sem r () Source #

Process an Event received from outside.

load :: forall r. Member History r => Int -> Sem r (Maybe Event) Source #

Load the Event at the given history index into the clipboards.