1module Rel8.Query.Indexed
7import Control.Applicative ( liftA2 )
8import Data.Int ( Int64 )
12import Rel8.Expr ( Expr )
13import Rel8.Expr.Window ( rowNumber )
14import Rel8.Query ( Query )
15import Rel8.Query.Window ( window )
16import Rel8.Table.Window ( currentRow )
19-- | Pair each row of a query with its index within the query.
20indexed :: Query a -> Query (Expr Int64, a)
21indexed = window (liftA2 (,) (subtract 1 <$> rowNumber) currentRow)
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