on master help sign in
Semantic colouring for :total
1c0b43fDavid Christiansen
src/Idris/REPL.hs+7−3
@@ -506,9 +506,13 @@ process h fn (TotCheck n)
506 = do i <- getIState
506 = do i <- getIState
507 case lookupNameTotal n (tt_ctxt i) of
507 case lookupNameTotal n (tt_ctxt i) of
508 [] -> ihPrintError h $ "Unknown operator " ++ show n
508 [] -> ihPrintError h $ "Unknown operator " ++ show n
509+ ts -> do ist <- getIState
510+ c <- colourise
511+ imp <- impShow
512+ let showN = showName (Just ist) [] imp c
509− ts -> ihPrintResult h . concat . intersperse "\n" .
513+ ihPrintResult h . concat . intersperse "\n" .
510− map (\(n, t) -> show n ++ " is " ++ showTotal t i) $
514+ map (\(n, t) -> showN n ++ " is " ++ showTotal t i) $
511− ts
515+ ts
512
516
513
517
514process h fn (DebugInfo n)
518process h fn (DebugInfo n)