hbro-contrib-1.4.0.0: Third-party extensions to hbro.

Safe HaskellNone
LanguageHaskell98

Hbro.History

Description

Designed to be imported as qualified.

Synopsis

Documentation

data Entry

Constructors

Entry 

Fields

_time :: UTCTime
 
_uri :: URI
 
_title :: Text
 

Instances

Eq Entry 
Ord Entry 
Describable Entry 
ToJSON Entry 
FromJSON Entry 

log :: (ControlIO m, MonadLogger m, MonadReader r m, Has MainView r, MonadThrow m, Alternative m) => m ()

Log current visited page to history database

log' :: (ControlIO m, MonadLogger m, MonadReader r m, Has MainView r, MonadThrow m, Alternative m) => FilePath -> m ()

Like log, but you can specify the history file path

add :: (ControlIO m, MonadLogger m, MonadThrow m, Alternative m) => Entry -> m ()

Add a new entry to history database

add' :: (ControlIO m, MonadLogger m, MonadThrow m, Alternative m) => FilePath -> Entry -> m ()

Like add, but you can specify the history file path

select :: (ControlIO m, MonadThrow m) => m Entry

Open a dmenu with all (sorted alphabetically) history entries, and return the user's selection, if any

select' :: (ControlIO m, MonadThrow m) => FilePath -> [Text] -> m Entry

Like select, but you can specify the history file path