1-- | The 'Reader' effect.
10import Effectful.Internal.Effect
11import Effectful.Internal.Monad
13-- | Provide access to a strict (WHNF), thread local, read only value of type
15newtype Reader r :: Effect where
16 Reader :: r -> Reader r m a
18runReader :: r -> Eff (Reader r : es) a -> Eff es a
19runReader r = evalEffect (IdE (Reader r))
21ask :: Reader r :> es => Eff es r
23 IdE (Reader r) <- getEffect
26asks :: Reader r :> es => (r -> a) -> Eff es a
28 IdE (Reader r) <- getEffect
31local :: Reader r :> es => (r -> r) -> Eff es a -> Eff es a
32local f = localEffect $ \(IdE (Reader r)) -> IdE (Reader (f r))
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