hsfm-gtk

Safe HaskellSafe
LanguageHaskell2010

HSFM.History

Synopsis

Documentation

data BrowsingHistory Source

Browsing history. For forwardHistory and backwardsHistory the first item is the most recent one.

Constructors

BrowsingHistory 

Fields

backwardsHistory :: [Path Abs]
 
currentDir :: Path Abs
 
forwardHistory :: [Path Abs]
 
maxSize :: Int
 

goNewPath :: Path Abs -> BrowsingHistory -> BrowsingHistory Source

This is meant to be called after e.g. a new path is entered (not navigated to via the history) and the history needs updating.

goBack :: BrowsingHistory -> BrowsingHistory Source

Go back in the history.

goForward :: BrowsingHistory -> BrowsingHistory Source

Go forward in the history.