@@ -13,8 +13,8 @@ import Data.Aeson ((.=))
13import qualified Data.Aeson.Types as Json
13import qualified Data.Aeson.Types as Json
14import System.IO (Handle)
14import System.IO (Handle)
15import Text.PrettyPrint.ANSI.Leijen
15import Text.PrettyPrint.ANSI.Leijen
16− ( Doc, SimpleDoc(..), (<>), displayS, displayIO, dullcyan, fillSep
16+ ( Doc, (<>), displayS, displayIO, dullcyan, fillSep
17− , hardline, renderPretty, text
17+ , hardline, plain, renderPretty, text
20import qualified Reporting.Region as R
20import qualified Reporting.Region as R
@@ -102,27 +102,5 @@ toString location region rprt source =
103nonAnsiRender :: Doc -> String
103nonAnsiRender :: Doc -> String
104nonAnsiRender doc =
104nonAnsiRender doc =
105− displayS (stripAnsi (renderPretty 1 80 doc)) ""
105+ displayS (renderPretty 1 80 (plain doc)) ""
108−stripAnsi :: SimpleDoc -> SimpleDoc
109−stripAnsi simpleDoc =
118− SChar chr (stripAnsi subDoc)
120− SText n str subDoc ->
121− SText n str (stripAnsi subDoc)
124− SLine n (stripAnsi subDoc)