1module Shared.Json (readJsonAff, readAff) where
5import Data.Either (Either, either)
7import Effect.Class (liftEffect)
8import Effect.Exception (throw)
9import Foreign (Foreign)
10import Simple.JSON (class ReadForeign, read, readJSON)
12readJsonAff ∷ ∀ a. ReadForeign a => String -> Aff a
13readJsonAff = readJSON >>> orThrow
15readAff ∷ ∀ a. ReadForeign a => Foreign -> Aff a
16readAff = read >>> orThrow
18orThrow ∷ ∀ a s. Show s => Either s a -> Aff a
19orThrow = either (show >>> throw >>> liftEffect) pure
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