| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Control.Effect.Readline.History
Description
Provides low level access to history associated with the readline effect.
This effect can be interpreted using any of the interpretations using the
ReadlineC carrier.
Synopsis
- data ReadlineHistory :: Effect where
- GetHistory :: ReadlineHistory m History
- PutHistory :: History -> ReadlineHistory m ()
- getHistory :: Eff ReadlineHistory m => m History
- putHistory :: Eff ReadlineHistory m => History -> m ()
- modifyHistory :: Eff ReadlineHistory m => (History -> History) -> m ()
- module System.Console.Haskeline.History
Documentation
data ReadlineHistory :: Effect where Source #
Constructors
| GetHistory :: ReadlineHistory m History | |
| PutHistory :: History -> ReadlineHistory m () |
getHistory :: Eff ReadlineHistory m => m History Source #
Get the History.
putHistory :: Eff ReadlineHistory m => History -> m () Source #
Set the History.
modifyHistory :: Eff ReadlineHistory m => (History -> History) -> m () Source #
Modify the History. The modification is not atomic.