@@ -59,7 +59,7 @@ import System.Console.ANSI (Color (..), ColorIntensity (Vivid),
5959 ConsoleLayer (Foreground ),
6060 SGR (SetColor , SetConsoleIntensity ),
6161 hSupportsANSIColor , setSGRCode )
62- import System.IO (Handle , hPutStr , stdout )
62+ import System.IO (Handle , hPutStr , stderr )
6363import Text.SimplePrettyPrint (Context , CtxDoc )
6464import Text.SimplePrettyPrint qualified as PP
6565
@@ -341,10 +341,10 @@ instance Contravariant OutputConfig where
341341
342342-- | The default tracer configuration
343343--
344- -- - writes to 'stdout ', and
344+ -- - writes to 'stderr ', and
345345-- - uses ANSI colors, if available.
346346instance Default (OutputConfig a ) where
347- def = OutputHandle stdout Nothing
347+ def = OutputHandle stderr Nothing
348348
349349-- | Output configuration suitable for compile-time code generation with
350350-- Template Haskell.
@@ -480,7 +480,7 @@ instance (Show a, Typeable a) => Exception (TraceException a) where
480480 toException = hsBindgenExceptionToException
481481 fromException = hsBindgenExceptionFromException
482482 -- We only display errors in tests.
483- displayException (TraceException _) = " An error happend (see above)"
483+ displayException (TraceException _) = " An error happened (see above)"
484484
485485{- ------------------------------------------------------------------------------
486486 Safe tracer
0 commit comments