Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data BrowsingHistory = BrowsingHistory {
- backwardsHistory :: [Path Abs]
- currentDir :: Path Abs
- forwardHistory :: [Path Abs]
- maxSize :: Int
- historyNewPath :: Path Abs -> BrowsingHistory -> BrowsingHistory
- historyBack :: BrowsingHistory -> BrowsingHistory
- historyForward :: BrowsingHistory -> BrowsingHistory
Documentation
data BrowsingHistory Source
Browsing history. For forwardHistory
and backwardsHistory
the first item is the most recent one.
BrowsingHistory | |
|
historyNewPath :: 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.
historyBack :: BrowsingHistory -> BrowsingHistory Source
Go back one step in the history.
historyForward :: BrowsingHistory -> BrowsingHistory Source
Go forward one step in the history.