1{-# LANGUAGE GeneralizedNewtypeDeriving #-}
2module Guid (guid, set, run, runAt, GuidCounter) where
4import Control.Monad.State (evalState, State, get, put)
6-- Wrapper around State monad.
7newtype GuidCounter a = GC { runGC :: State Int a }
10-- Get the next GUID, incrementing the counter.
11guid :: GuidCounter Int
12guid = GC $ do n <- get
19runAt n x = evalState (runGC x) n
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list