1module Yoga.Helpers where
4import Data.Maybe (Maybe(..), fromMaybe)
6fromMaybeFlipped ∷ ∀ a. Maybe a -> a -> a
7fromMaybeFlipped = flip fromMaybe
9infixr 5 fromMaybeFlipped as ?||
11ifJustTrue ∷ ∀ m. Monoid m => Maybe Boolean -> m -> m
12ifJustTrue option value = if option == Just true then value else mempty
14ifJustFalse ∷ ∀ m. Monoid m => Maybe Boolean -> m -> m
15ifJustFalse option value = if option == Just false then value else mempty
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