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