1{-# OPTIONS_GHC -Wall #-}
2module Reporting.Annotation
13import Prelude hiding (map, traverse)
14import qualified Reporting.Region as R
29at :: R.Position -> R.Position -> a -> Located a
31 At (R.Region start end) value
34merge :: Located a -> Located b -> value -> Located value
35merge (At region1 _) (At region2 _) value =
36 At (R.merge region1 region2) value
43map :: (a -> b) -> Located a -> Located b
44map f (At info value) =
48toValue :: Located a -> a
53toRegion :: Located a -> R.Region
54toRegion (At region _) =
58traverse :: (Functor f) => (a -> f b) -> Located a -> f (Located b)
59traverse func (At region value) =
60 At region <$> func value
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