1module Idris.Error where
9import Control.Monad.State
12report :: IOError -> String
14 | isUserError e = ioeGetErrorString e
17-- Taken from the library source code - for ghc 6.12/7 compatibility
18liftCatch :: (m (a,s) -> (e -> m (a,s)) -> m (a,s)) ->
19 StateT s m a -> (e -> StateT s m a) -> StateT s m a
20liftCatch catchError m h =
21 StateT $ \s -> runStateT m s `catchError` \e -> runStateT (h e) s
23idrisCatch :: Idris a -> (IOError -> Idris a) -> Idris a
24idrisCatch op handler = liftCatch catch op handler
26tclift :: Show a => TC a -> Idris a
29 Error err -> do i <- get
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