@@ -641,13 +641,14 @@ isetPrompt p = do i <- getIState
641641
642642ihWarn :: Handle -> FC -> Doc OutputAnnotation -> Idris ()
643643ihWarn h fc err = do i <- getIState
644− err' <- iRender . fmap (fancifyAnnots i) $ err
645644 case idris_outputmode i of
646645 RawOutput ->
647− runIO $
648− hPutStrLn h (show fc ++ ":" ++ displayDecorated (consoleDecorate i) err')
646+ do err' <- iRender . fmap (fancifyAnnots i) $
647+ text (show fc) <> colon <//> err
648+ runIO . hPutStrLn h $ displayDecorated (consoleDecorate i) err'
649649 IdeSlave n ->
650− do let (str, spans) = displaySpans err'
650+ do err' <- iRender . fmap (fancifyAnnots i) $ err
651+ let (str, spans) = displaySpans err'
651652 runIO . hPutStrLn h $
652653 convSExp "warning" (fc_fname fc, fc_line fc, fc_column fc, str, spans) n
653654