@@ -48,6 +48,7 @@ import Util.Pretty hiding ((</>))
4848import Idris.Core.Evaluate
4949import Idris.Core.Execute (execute)
5050import Idris.Core.TT
51+import Idris.Core.Unify
5152import Idris.Core.Constraints
5253
5354import IRTS.Compiler
@@ -929,6 +930,13 @@ process fn (TotCheck n)
929930 map (\(n, t) -> showN n ++ " is " ++ showTotal t i) $
930931 ts
931932
933+process fn (DebugUnify l r)
934+ = do (ltm, _) <- elabVal recinfo ERHS l
935+ (rtm, _) <- elabVal recinfo ERHS r
936+ ctxt <- getContext
937+ case unify ctxt [] ltm rtm [] [] [] [] of
938+ OK ans -> iputStrLn (show ans)
939+ Error e -> iputStrLn (show e)
932940
933941process fn (DebugInfo n)
934942 = do i <- getIState