@@ -438,7 +438,7 @@ runIdeModeCommand h id orig fn mods (IdeMode.Metavariables cols) =
439 displaySpans .
439 displaySpans .
440 renderPretty 0.9 cols .
440 renderPretty 0.9 cols .
441− fmap (fancifyAnnots ist) .
441+ fmap (fancifyAnnots ist True) .
442 annotate (AnnTerm (zip bnd (take (length bnd) (repeat False))) t) $
442 annotate (AnnTerm (zip bnd (take (length bnd) (repeat False))) t) $
@@ -463,7 +463,7 @@ runIdeModeCommand h id orig fn mods (IdeMode.WhoCalls n) =
463 runIO . hPutStrLn h $ IdeMode.convSExp "return" msg id
463 runIO . hPutStrLn h $ IdeMode.convSExp "return" msg id
464 where pn ist = displaySpans .
464 where pn ist = displaySpans .
465 renderPretty 0.9 1000 .
465 renderPretty 0.9 1000 .
466− fmap (fancifyAnnots ist) .
466+ fmap (fancifyAnnots ist True) .
467 prettyName True True []
467 prettyName True True []
469runIdeModeCommand h id orig fn mods (IdeMode.CallsWho n) =
469runIdeModeCommand h id orig fn mods (IdeMode.CallsWho n) =
@@ -476,7 +476,7 @@ runIdeModeCommand h id orig fn mods (IdeMode.CallsWho n) =
476 runIO . hPutStrLn h $ IdeMode.convSExp "return" msg id
476 runIO . hPutStrLn h $ IdeMode.convSExp "return" msg id
477 where pn ist = displaySpans .
477 where pn ist = displaySpans .
478 renderPretty 0.9 1000 .
478 renderPretty 0.9 1000 .
479− fmap (fancifyAnnots ist) .
479+ fmap (fancifyAnnots ist True) .
480 prettyName True True []
480 prettyName True True []
482runIdeModeCommand h id orig fn modes (IdeMode.BrowseNS ns) =
482runIdeModeCommand h id orig fn modes (IdeMode.BrowseNS ns) =
@@ -491,7 +491,7 @@ runIdeModeCommand h id orig fn modes (IdeMode.BrowseNS ns) =
491 runIO . hPutStrLn h $ IdeMode.convSExp "return" msg id
491 runIO . hPutStrLn h $ IdeMode.convSExp "return" msg id
492 where pn ist = displaySpans .
492 where pn ist = displaySpans .
493 renderPretty 0.9 1000 .
493 renderPretty 0.9 1000 .
494− fmap (fancifyAnnots ist) .
494+ fmap (fancifyAnnots ist True) .
495 prettyName True True []
495 prettyName True True []
496runIdeModeCommand h id orig fn modes (IdeMode.TermNormalise bnd tm) =
496runIdeModeCommand h id orig fn modes (IdeMode.TermNormalise bnd tm) =
497 do ctxt <- getContext
497 do ctxt <- getContext
@@ -506,7 +506,7 @@ runIdeModeCommand h id orig fn modes (IdeMode.TermNormalise bnd tm) =
506 msg = (IdeMode.SymbolAtom "ok",
506 msg = (IdeMode.SymbolAtom "ok",
507 displaySpans .
507 displaySpans .
508 renderPretty 0.9 80 .
508 renderPretty 0.9 80 .
509− fmap (fancifyAnnots ist) $ ptm)
509+ fmap (fancifyAnnots ist True) $ ptm)
510 runIO . hPutStrLn h $ IdeMode.convSExp "return" msg id
510 runIO . hPutStrLn h $ IdeMode.convSExp "return" msg id
511runIdeModeCommand h id orig fn modes (IdeMode.TermShowImplicits bnd tm) =
511runIdeModeCommand h id orig fn modes (IdeMode.TermShowImplicits bnd tm) =
512 ideModeForceTermImplicits h id bnd True tm
512 ideModeForceTermImplicits h id bnd True tm
@@ -519,7 +519,7 @@ runIdeModeCommand h id orig fn modes (IdeMode.TermElab bnd tm) =
519 msg = (IdeMode.SymbolAtom "ok",
519 msg = (IdeMode.SymbolAtom "ok",
520 displaySpans .
520 displaySpans .
521 renderPretty 0.9 70 .
521 renderPretty 0.9 70 .
522− fmap (fancifyAnnots ist) $ ptm)
522+ fmap (fancifyAnnots ist True) $ ptm)
523 runIO . hPutStrLn h $ IdeMode.convSExp "return" msg id
523 runIO . hPutStrLn h $ IdeMode.convSExp "return" msg id
524runIdeModeCommand h id orig fn mods (IdeMode.PrintDef name) =
524runIdeModeCommand h id orig fn mods (IdeMode.PrintDef name) =
525 case splitName name of
525 case splitName name of
@@ -535,7 +535,7 @@ runIdeModeCommand h id orig fn modes (IdeMode.ErrPPrint e) =
535 let (out, spans) =
535 let (out, spans) =
536 displaySpans .
536 displaySpans .
537 renderPretty 0.9 80 .
537 renderPretty 0.9 80 .
538− fmap (fancifyAnnots ist) $ pprintErr ist e
538+ fmap (fancifyAnnots ist True) $ pprintErr ist e
539 msg = (IdeMode.SymbolAtom "ok", out, spans)
539 msg = (IdeMode.SymbolAtom "ok", out, spans)
540 runIO . hPutStrLn h $ IdeMode.convSExp "return" msg id
540 runIO . hPutStrLn h $ IdeMode.convSExp "return" msg id
541runIdeModeCommand h id orig fn modes IdeMode.GetIdrisVersion =
541runIdeModeCommand h id orig fn modes IdeMode.GetIdrisVersion =
@@ -558,7 +558,7 @@ ideModeForceTermImplicits h id bnd impl tm =
558 msg = (IdeMode.SymbolAtom "ok",
558 msg = (IdeMode.SymbolAtom "ok",
559 displaySpans .
559 displaySpans .
560 renderPretty 0.9 80 .
560 renderPretty 0.9 80 .
561− fmap (fancifyAnnots ist) $ expl)
561+ fmap (fancifyAnnots ist True) $ expl)
562 runIO . hPutStrLn h $ IdeMode.convSExp "return" msg id
562 runIO . hPutStrLn h $ IdeMode.convSExp "return" msg id
564splitName :: String -> Either String Name
564splitName :: String -> Either String Name
@@ -788,7 +788,7 @@ process fn (NewDefn decls) = do
788 mapM_ defineName namedGroups where
788 mapM_ defineName namedGroups where
789 namedGroups = groupBy (\d1 d2 -> getName d1 == getName d2) decls
789 namedGroups = groupBy (\d1 d2 -> getName d1 == getName d2) decls
790 getName :: PDecl -> Maybe Name
790 getName :: PDecl -> Maybe Name
791− getName (PTy docs argdocs syn fc opts name ty) = Just name
791+ getName (PTy docs argdocs syn fc opts name _ ty) = Just name
792 getName (PClauses fc opts name (clause:clauses)) = Just (getClauseName clause)
792 getName (PClauses fc opts name (clause:clauses)) = Just (getClauseName clause)
793 getName (PData doc argdocs syn fc opts dataDecl) = Just (d_name dataDecl)
793 getName (PData doc argdocs syn fc opts dataDecl) = Just (d_name dataDecl)
794 getName (PClass doc syn fc constraints name parms parmdocs fds decls) = Just name
794 getName (PClass doc syn fc constraints name parms parmdocs fds decls) = Just name
@@ -797,7 +797,7 @@ process fn (NewDefn decls) = do
797 getClauseName (PClause fc name whole with rhs whereBlock) = name
797 getClauseName (PClause fc name whole with rhs whereBlock) = name
798 getClauseName (PWith fc name whole with rhs pn whereBlock) = name
798 getClauseName (PWith fc name whole with rhs pn whereBlock) = name
799 defineName :: [PDecl] -> Idris ()
799 defineName :: [PDecl] -> Idris ()
800− defineName (tyDecl@(PTy docs argdocs syn fc opts name ty) : decls) = do
800+ defineName (tyDecl@(PTy docs argdocs syn fc opts name _ ty) : decls) = do
801 elabDecl EAll recinfo tyDecl
801 elabDecl EAll recinfo tyDecl
802 elabClauses recinfo fc opts name (concatMap getClauses decls)
802 elabClauses recinfo fc opts name (concatMap getClauses decls)
803 setReplDefined (Just name)
803 setReplDefined (Just name)
@@ -896,7 +896,7 @@ process fn (Check (PRef _ n))
896 case lookupNames n ctxt of
896 case lookupNames n ctxt of
897 ts@(t:_) ->
897 ts@(t:_) ->
898 case lookup t (idris_metavars ist) of
898 case lookup t (idris_metavars ist) of
899− Just (_, i, _) -> iRenderResult . fmap (fancifyAnnots ist) $
899+ Just (_, i, _) -> iRenderResult . fmap (fancifyAnnots ist True) $
900 showMetavarInfo ppo ist n i
900 showMetavarInfo ppo ist n i
901 Nothing -> iPrintFunTypes [] n (map (\n -> (n, pprintDelabTy ist n)) ts)
901 Nothing -> iPrintFunTypes [] n (map (\n -> (n, pprintDelabTy ist n)) ts)
902 [] -> iPrintError $ "No such variable " ++ show n
902 [] -> iPrintError $ "No such variable " ++ show n