Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data BrowsingHistory = BrowsingHistory {
- backwardsHistory :: [Path Abs]
- currentDir :: Path Abs
- forwardHistory :: [Path Abs]
- maxSize :: Int
- goNewPath :: Path Abs -> BrowsingHistory -> BrowsingHistory
- goBack :: BrowsingHistory -> BrowsingHistory
- goForward :: BrowsingHistory -> BrowsingHistory
Documentation
data BrowsingHistory Source #
Browsing history. For forwardHistory
and backwardsHistory
the first item is the most recent one.
BrowsingHistory | |
|
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.