1{-# LANGUAGE DeriveFunctor #-}
3module Idris.Core.TC(TC'(..)) where
5import Control.Applicative
7import Control.Monad.Trans.Error(Error(..))
11 deriving (Eq, Functor)
13bindTC :: TC' e a -> (a -> TC' e b) -> TC' e b
19instance Error e => Monad (TC' e) where
22 fail e = Error (strMsg e)
24instance Error e => MonadPlus (TC' e) where
25 mzero = fail "Unknown error"
26 (OK x) `mplus` _ = OK x
27 _ `mplus` (OK y) = OK y
31instance Error e => Applicative (TC' e) where
35instance Error e => Alternative (TC' e) where
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