1-- | The 'Reader' as an effect.
11import Effectful.Internal.Has
12import Effectful.Internal.Monad
14-- | Provide access to a read only value of type @r@.
15newtype Reader r = Reader { unReader :: r }
17runReader :: r -> Eff (Reader r : es) a -> Eff es a
18runReader r = evalEffect (Reader r)
20ask :: Reader r :> es => Eff es r
21ask = unReader <$> getEffect
23local :: Reader r :> es => (r -> r) -> Eff es a -> Eff es a
24local f = localEffect (Reader . f . unReader)
26reader :: Reader r :> es => (r -> a) -> Eff es a
27reader f = f . unReader <$> getEffect
29asks :: Reader r :> es => (r -> a) -> Eff es a
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