1module Idris.Error where
9import Control.Monad.State
13report :: IOError -> String
15 | isUserError e = ioeGetErrorString e
18-- Taken from the library source code - for ghc 6.12/7 compatibility
19liftCatch :: (m (a,s) -> (e -> m (a,s)) -> m (a,s)) ->
20 StateT s m a -> (e -> StateT s m a) -> StateT s m a
21liftCatch catchError m h =
22 StateT $ \s -> runStateT m s `catchError` \e -> runStateT (h e) s
24idrisCatch :: Idris a -> (IOError -> Idris a) -> Idris a
25idrisCatch op handler = liftCatch catch op handler
27tclift :: Show a => TC a -> Idris a
30 Error err -> do i <- get
32 At (FC f l) e -> setErrLine l
37 = case span (/=':') str of
38 (_, ':':rest) -> case span isDigit rest of
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