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

Safe HaskellNone

Hbro.History

Description

Designed to be imported as qualified.

Synopsis

Documentation

data Entry Source

Constructors

Entry 

Fields

mTime :: LocalTime
 
mURI :: URI
 
mTitle :: String
 

Instances

log :: (MonadBase IO m, ConfigReader n m, GUIReader n m, MonadError HError m) => FilePath -> m ()Source

Log current visited page to history file

addSource

Arguments

:: (MonadBase IO m, ConfigReader n m, MonadError HError m) 
=> FilePath

History file

-> Entry

History entry to add

-> m () 

Add a new entry to history file

parseEntry :: MonadError HError m => String -> m EntrySource

Try to parse a String into a history Entry.

selectSource

Arguments

:: (Functor m, MonadBase IO m, MonadError HError m) 
=> FilePath

Path to history file

-> [String]

dmenu's commandline options

-> m Entry

Selected history entry, if any

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