2-- Module : Streamly.Internal.Control.Monad
3-- Copyright : (c) 2019 Composewell Technologies
6-- Maintainer : streamly@composewell.com
7-- Stability : experimental
10-- Additional "Control.Monad" utilities.
12{-# LANGUAGE ScopedTypeVariables #-}
14module Streamly.Internal.Control.Monad
19import Control.Monad (void)
20import Control.Monad.Catch (MonadCatch, catch, SomeException)
22-- | Discard any exceptions or value returned by an effectful action.
27discard :: MonadCatch m => m b -> m ()
28discard action = (void $ action) `catch` (\(_ :: SomeException) -> return ())
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