@@ -5,11 +5,21 @@ import Idris.Delaborate
6import Core.TT
6import Core.TT
7import Core.Typecheck
7import Core.Typecheck
8+import Core.Constraints
9import Control.Monad.State
10import Control.Monad.State
10import System.IO.Error
11import System.IO.Error
11import Data.Char
12import Data.Char
15+iucheck = do tit <- typeInType
18+ idrisCatch (tclift $ ucheck (idris_constraints ist))
19+ (\e -> do let msg = report e
20+ setErrLine (getErrLine msg)
13report :: IOError -> String
23report :: IOError -> String
15 | isUserError e = ioeGetErrorString e
25 | isUserError e = ioeGetErrorString e