@@ -449,9 +449,12 @@ displayWarnings est
449 = mapM_ displayImpWarning (implicit_warnings est)
449 = mapM_ displayImpWarning (implicit_warnings est)
451 displayImpWarning :: (FC, Name) -> Idris ()
451 displayImpWarning :: (FC, Name) -> Idris ()
452− displayImpWarning (fc, n) =
452+ displayImpWarning (fc, n) = do
454+ let msg = show (nsroot n)
453− iputStrLn $ show fc ++ ":WARNING: " ++ show (nsroot n) ++ " is bound as an implicit\n"
455+ ++ " is bound as an implicit\n"
454− ++ "\tDid you mean to refer to " ++ show n ++ "?"
456+ ++ "\tDid you mean to refer to " ++ show n ++ "?"
457+ iWarn fc (pprintErr ist (Msg msg))
456propagateParams :: IState -> [Name] -> Type -> [Name] -> PTerm -> PTerm
459propagateParams :: IState -> [Name] -> Type -> [Name] -> PTerm -> PTerm
457propagateParams i ps t bound tm@(PApp _ (PRef fc hls n) args)
460propagateParams i ps t bound tm@(PApp _ (PRef fc hls n) args)
@@ -767,5 +770,3 @@ isPlausible ist var env n ty
767 collectConstraints env tcs t
770 collectConstraints env tcs t
768 | (V i, _) <- unApply t = (Just (env !! i), tcs)
771 | (V i, _) <- unApply t = (Just (env !! i), tcs)
769 | otherwise = (Nothing, tcs)
772 | otherwise = (Nothing, tcs)