@@ -9,12 +9,13 @@ Maintainer : The Idris Community.
9{-# LANGUAGE FlexibleInstances #-}
9{-# LANGUAGE FlexibleInstances #-}
10{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
10{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
12−module Idris.Output (clearHighlights, emit, formatMessage, idemodePutSExp, iPrintError, iPrintFunTypes,
12+module Idris.Output (clearHighlights, emitWarning, formatMessage, idemodePutSExp,
13− iPrintResult, iPrintTermWithType, iputGoal, iputStr, iputStrLn,
13+ iPrintError, iPrintFunTypes, iPrintResult, iPrintTermWithType,
14+ iputGoal, iputStr, iputStrLn, iRender, iRenderError,
14− iRender, iRenderError, iRenderOutput, iRenderResult, iWarn,
15+ iRenderOutput, iRenderResult, iWarn, prettyDocumentedIst,
15− prettyDocumentedIst, printUndefinedNames, pshow, renderExternal,
16+ printUndefinedNames, pshow, renderExternal, sendHighlighting,
16− sendHighlighting, sendParserHighlighting, warnTotality,
17+ sendParserHighlighting, warnTotality, writeHighlights,
17− writeHighlights, OutputDoc(..), Message(..)) where
18+ OutputDoc(..), Message(..)) where
19import Idris.AbsSyntax
20import Idris.AbsSyntax
20import Idris.Colours (hEndColourise, hStartColourise)
21import Idris.Colours (hEndColourise, hStartColourise)
@@ -173,10 +174,10 @@ formatMessage w = do
173 layoutMessage loc Nothing err = loc </> err
174 layoutMessage loc Nothing err = loc </> err
175iWarn :: FC -> OutputDoc -> Idris ()
176iWarn :: FC -> OutputDoc -> Idris ()
176−iWarn fc err = emit $ SimpleWarning fc err
177+iWarn fc err = emitWarning $ SimpleWarning fc err
178−emit :: Message w => w -> Idris ()
179+emitWarning :: Message w => w -> Idris ()
179−emit w =
180+emitWarning w =
180 do i <- getIState
181 do i <- getIState
181 case idris_outputmode i of
182 case idris_outputmode i of
182 RawOutput h ->
183 RawOutput h ->