@@ -163,8 +163,16 @@ process Universes = do i <- get
163163 case ucheck cs of
164164 Error e -> iputStrLn $ pshow i e
165165 OK _ -> iputStrLn "Universes OK"
166−process (Defn n) = do ctxt <- getContext
167− liftIO $ print (lookupDef Nothing n ctxt)
166+process (Defn n) = do i <- get
167+ iputStrLn "Compiled patterns:\n"
168+ liftIO $ print (lookupDef Nothing n (tt_ctxt i))
169+ case lookupCtxt Nothing n (idris_patdefs i) of
170+ [] -> return ()
171+ [d] -> do iputStrLn "Original definiton:\n"
172+ mapM_ (printCase i) d
173+ where printCase i (lhs, rhs) = do liftIO $ putStr $ showImp True (delab i lhs)
174+ liftIO $ putStr " = "
175+ liftIO $ putStrLn $ showImp True (delab i rhs)
168176process (Info n) = do i <- get
169177 let oi = lookupCtxt Nothing n (idris_optimisation i)
170178 liftIO $ print oi