{-# LANGUAGE CPP #-}
module Debug.Pretty.Simple
(
pTrace
, pTraceId
, pTraceShow
, pTraceShowId
, pTraceIO
, pTraceM
, pTraceShowM
, pTraceStack
, pTraceEvent
, pTraceEventIO
, pTraceMarker
, pTraceMarkerIO
, pTraceWith
, pTraceShowWith
, pTraceForceColor
, pTraceIdForceColor
, pTraceShowForceColor
, pTraceShowIdForceColor
, pTraceMForceColor
, pTraceShowMForceColor
, pTraceStackForceColor
, pTraceEventForceColor
, pTraceEventIOForceColor
, pTraceMarkerForceColor
, pTraceMarkerIOForceColor
, pTraceIOForceColor
, pTraceNoColor
, pTraceIdNoColor
, pTraceShowNoColor
, pTraceShowIdNoColor
, pTraceMNoColor
, pTraceShowMNoColor
, pTraceStackNoColor
, pTraceEventNoColor
, pTraceEventIONoColor
, pTraceMarkerNoColor
, pTraceMarkerIONoColor
, pTraceIONoColor
, pTraceOpt
, pTraceIdOpt
, pTraceShowOpt
, pTraceShowIdOpt
, pTraceOptIO
, pTraceOptM
, pTraceShowOptM
, pTraceStackOpt
, pTraceEventOpt
, pTraceEventOptIO
, pTraceMarkerOpt
, pTraceMarkerOptIO
) where
import Control.Monad ((<=<))
import Data.Text.Lazy (Text, unpack)
import Debug.Trace
(trace, traceEvent, traceEventIO, traceIO, traceM, traceMarker,
traceMarkerIO, traceStack)
import System.IO (stderr)
import System.IO.Unsafe (unsafePerformIO)
import Text.Pretty.Simple
(CheckColorTty(..), OutputOptions, pStringOpt,
defaultOutputOptionsNoColor, defaultOutputOptionsDarkBg)
import Text.Pretty.Simple.Internal (hCheckTTY)
#if __GLASGOW_HASKELL__ < 710
import Control.Applicative
#endif
{-# WARNING pTraceIO "'pTraceIO' remains in code" #-}
pTraceIO :: String -> IO ()
pTraceIO :: String -> IO ()
pTraceIO = CheckColorTty -> OutputOptions -> String -> IO ()
pTraceOptIO CheckColorTty
CheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTrace "'pTrace' remains in code" #-}
pTrace :: String -> a -> a
pTrace :: forall a. String -> a -> a
pTrace = forall a. CheckColorTty -> OutputOptions -> String -> a -> a
pTraceOpt CheckColorTty
CheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceId "'pTraceId' remains in code" #-}
pTraceId :: String -> String
pTraceId :: String -> String
pTraceId = CheckColorTty -> OutputOptions -> String -> String
pTraceIdOpt CheckColorTty
CheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceShow "'pTraceShow' remains in code" #-}
pTraceShow :: (Show a) => a -> b -> b
pTraceShow :: forall a b. Show a => a -> b -> b
pTraceShow = forall a b. Show a => CheckColorTty -> OutputOptions -> a -> b -> b
pTraceShowOpt CheckColorTty
CheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceShowId "'pTraceShowId' remains in code" #-}
pTraceShowId :: (Show a) => a -> a
pTraceShowId :: forall a. Show a => a -> a
pTraceShowId = forall a. Show a => CheckColorTty -> OutputOptions -> a -> a
pTraceShowIdOpt CheckColorTty
CheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceM "'pTraceM' remains in code" #-}
#if __GLASGOW_HASKELL__ < 800
pTraceM :: (Monad f) => String -> f ()
#else
pTraceM :: (Applicative f) => String -> f ()
#endif
pTraceM :: forall (f :: * -> *). Applicative f => String -> f ()
pTraceM = forall (f :: * -> *).
Applicative f =>
CheckColorTty -> OutputOptions -> String -> f ()
pTraceOptM CheckColorTty
CheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceShowM "'pTraceShowM' remains in code" #-}
#if __GLASGOW_HASKELL__ < 800
pTraceShowM :: (Show a, Monad f) => a -> f ()
#else
pTraceShowM :: (Show a, Applicative f) => a -> f ()
#endif
pTraceShowM :: forall a (f :: * -> *). (Show a, Applicative f) => a -> f ()
pTraceShowM = forall a (f :: * -> *).
(Show a, Applicative f) =>
CheckColorTty -> OutputOptions -> a -> f ()
pTraceShowOptM CheckColorTty
CheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceStack "'pTraceStack' remains in code" #-}
pTraceStack :: String -> a -> a
pTraceStack :: forall a. String -> a -> a
pTraceStack = forall a. CheckColorTty -> OutputOptions -> String -> a -> a
pTraceStackOpt CheckColorTty
CheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceEvent "'pTraceEvent' remains in code" #-}
pTraceEvent :: String -> a -> a
pTraceEvent :: forall a. String -> a -> a
pTraceEvent = forall a. CheckColorTty -> OutputOptions -> String -> a -> a
pTraceEventOpt CheckColorTty
CheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceEventIO "'pTraceEventIO' remains in code" #-}
pTraceEventIO :: String -> IO ()
pTraceEventIO :: String -> IO ()
pTraceEventIO = CheckColorTty -> OutputOptions -> String -> IO ()
pTraceEventOptIO CheckColorTty
CheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceMarker "'pTraceMarker' remains in code" #-}
pTraceMarker :: String -> a -> a
pTraceMarker :: forall a. String -> a -> a
pTraceMarker = forall a. CheckColorTty -> OutputOptions -> String -> a -> a
pTraceMarkerOpt CheckColorTty
CheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceMarkerIO "'pTraceMarkerIO' remains in code" #-}
pTraceMarkerIO :: String -> IO ()
pTraceMarkerIO :: String -> IO ()
pTraceMarkerIO = CheckColorTty -> OutputOptions -> String -> IO ()
pTraceMarkerOptIO CheckColorTty
CheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceWith "'pTraceWith' remains in code" #-}
pTraceWith :: (a -> String) -> a -> a
pTraceWith :: forall a. (a -> String) -> a -> a
pTraceWith a -> String
f a
a = forall a. String -> a -> a
pTrace (a -> String
f a
a) a
a
{-# WARNING pTraceShowWith "'pTraceShowWith' remains in code" #-}
pTraceShowWith :: Show b => (a -> b) -> a -> a
pTraceShowWith :: forall b a. Show b => (a -> b) -> a -> a
pTraceShowWith a -> b
f = (forall a. Show a => a -> String
show forall b c a. (b -> c) -> (a -> b) -> a -> c
. a -> b
f) forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= forall a b. Show a => a -> b -> b
pTraceShow
{-# WARNING pStringTTYOptIO "'pStringTTYOptIO' remains in code" #-}
pStringTTYOptIO :: CheckColorTty -> OutputOptions -> String -> IO Text
pStringTTYOptIO :: CheckColorTty -> OutputOptions -> String -> IO Text
pStringTTYOptIO CheckColorTty
checkColorTty OutputOptions
outputOptions String
v = do
OutputOptions
realOutputOpts <-
case CheckColorTty
checkColorTty of
CheckColorTty
CheckColorTty -> forall (m :: * -> *).
MonadIO m =>
Handle -> OutputOptions -> m OutputOptions
hCheckTTY Handle
stderr OutputOptions
outputOptions
CheckColorTty
NoCheckColorTty -> forall (f :: * -> *) a. Applicative f => a -> f a
pure OutputOptions
outputOptions
forall (f :: * -> *) a. Applicative f => a -> f a
pure forall a b. (a -> b) -> a -> b
$ OutputOptions -> String -> Text
pStringOpt OutputOptions
realOutputOpts String
v
{-# WARNING pStringTTYOpt "'pStringTTYOpt' remains in code" #-}
pStringTTYOpt :: CheckColorTty -> OutputOptions -> String -> Text
pStringTTYOpt :: CheckColorTty -> OutputOptions -> String -> Text
pStringTTYOpt CheckColorTty
checkColorTty OutputOptions
outputOptions =
forall a. IO a -> a
unsafePerformIO forall b c a. (b -> c) -> (a -> b) -> a -> c
. CheckColorTty -> OutputOptions -> String -> IO Text
pStringTTYOptIO CheckColorTty
checkColorTty OutputOptions
outputOptions
{-# WARNING pShowTTYOptIO "'pShowTTYOptIO' remains in code" #-}
pShowTTYOptIO :: Show a => CheckColorTty -> OutputOptions -> a -> IO Text
pShowTTYOptIO :: forall a. Show a => CheckColorTty -> OutputOptions -> a -> IO Text
pShowTTYOptIO CheckColorTty
checkColorTty OutputOptions
outputOptions =
CheckColorTty -> OutputOptions -> String -> IO Text
pStringTTYOptIO CheckColorTty
checkColorTty OutputOptions
outputOptions forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. Show a => a -> String
show
{-# WARNING pShowTTYOpt "'pShowTTYOpt' remains in code" #-}
pShowTTYOpt :: Show a => CheckColorTty -> OutputOptions -> a -> Text
pShowTTYOpt :: forall a. Show a => CheckColorTty -> OutputOptions -> a -> Text
pShowTTYOpt CheckColorTty
checkColorTty OutputOptions
outputOptions =
forall a. IO a -> a
unsafePerformIO forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. Show a => CheckColorTty -> OutputOptions -> a -> IO Text
pShowTTYOptIO CheckColorTty
checkColorTty OutputOptions
outputOptions
{-# WARNING pTraceForceColor "'pTraceForceColor' remains in code" #-}
pTraceForceColor :: String -> a -> a
pTraceForceColor :: forall a. String -> a -> a
pTraceForceColor = forall a. CheckColorTty -> OutputOptions -> String -> a -> a
pTraceOpt CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceIdForceColor "'pTraceIdForceColor' remains in code" #-}
pTraceIdForceColor :: String -> String
pTraceIdForceColor :: String -> String
pTraceIdForceColor = CheckColorTty -> OutputOptions -> String -> String
pTraceIdOpt CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceShowForceColor "'pTraceShowForceColor' remains in code" #-}
pTraceShowForceColor :: (Show a) => a -> b -> b
pTraceShowForceColor :: forall a b. Show a => a -> b -> b
pTraceShowForceColor = forall a b. Show a => CheckColorTty -> OutputOptions -> a -> b -> b
pTraceShowOpt CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceShowIdForceColor "'pTraceShowIdForceColor' remains in code" #-}
pTraceShowIdForceColor :: (Show a) => a -> a
pTraceShowIdForceColor :: forall a. Show a => a -> a
pTraceShowIdForceColor =
forall a. Show a => CheckColorTty -> OutputOptions -> a -> a
pTraceShowIdOpt CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceMForceColor "'pTraceMForceColor' remains in code" #-}
#if __GLASGOW_HASKELL__ < 800
pTraceMForceColor :: (Monad f) => String -> f ()
#else
pTraceMForceColor :: (Applicative f) => String -> f ()
#endif
pTraceMForceColor :: forall (f :: * -> *). Applicative f => String -> f ()
pTraceMForceColor = forall (f :: * -> *).
Applicative f =>
CheckColorTty -> OutputOptions -> String -> f ()
pTraceOptM CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceShowMForceColor "'pTraceShowMForceColor' remains in code" #-}
#if __GLASGOW_HASKELL__ < 800
pTraceShowMForceColor :: (Show a, Monad f) => a -> f ()
#else
pTraceShowMForceColor :: (Show a, Applicative f) => a -> f ()
#endif
pTraceShowMForceColor :: forall a (f :: * -> *). (Show a, Applicative f) => a -> f ()
pTraceShowMForceColor =
forall a (f :: * -> *).
(Show a, Applicative f) =>
CheckColorTty -> OutputOptions -> a -> f ()
pTraceShowOptM CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceStackForceColor "'pTraceStackForceColor' remains in code" #-}
pTraceStackForceColor :: String -> a -> a
pTraceStackForceColor :: forall a. String -> a -> a
pTraceStackForceColor =
forall a. CheckColorTty -> OutputOptions -> String -> a -> a
pTraceStackOpt CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceEventForceColor "'pTraceEventForceColor' remains in code" #-}
pTraceEventForceColor :: String -> a -> a
pTraceEventForceColor :: forall a. String -> a -> a
pTraceEventForceColor =
forall a. CheckColorTty -> OutputOptions -> String -> a -> a
pTraceEventOpt CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceEventIOForceColor "'pTraceEventIOForceColor' remains in code" #-}
pTraceEventIOForceColor :: String -> IO ()
pTraceEventIOForceColor :: String -> IO ()
pTraceEventIOForceColor =
CheckColorTty -> OutputOptions -> String -> IO ()
pTraceEventOptIO CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceMarkerForceColor "'pTraceMarkerForceColor' remains in code" #-}
pTraceMarkerForceColor :: String -> a -> a
pTraceMarkerForceColor :: forall a. String -> a -> a
pTraceMarkerForceColor =
forall a. CheckColorTty -> OutputOptions -> String -> a -> a
pTraceMarkerOpt CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceMarkerIOForceColor "'pTraceMarkerIOForceColor' remains in code" #-}
pTraceMarkerIOForceColor :: String -> IO ()
pTraceMarkerIOForceColor :: String -> IO ()
pTraceMarkerIOForceColor =
CheckColorTty -> OutputOptions -> String -> IO ()
pTraceMarkerOptIO CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceIOForceColor "'pTraceIOForceColor' remains in code" #-}
pTraceIOForceColor :: String -> IO ()
pTraceIOForceColor :: String -> IO ()
pTraceIOForceColor = CheckColorTty -> OutputOptions -> String -> IO ()
pTraceOptIO CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsDarkBg
{-# WARNING pTraceNoColor "'pTraceNoColor' remains in code" #-}
pTraceNoColor :: String -> a -> a
pTraceNoColor :: forall a. String -> a -> a
pTraceNoColor = forall a. CheckColorTty -> OutputOptions -> String -> a -> a
pTraceOpt CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsNoColor
{-# WARNING pTraceIdNoColor "'pTraceIdNoColor' remains in code" #-}
pTraceIdNoColor :: String -> String
pTraceIdNoColor :: String -> String
pTraceIdNoColor = CheckColorTty -> OutputOptions -> String -> String
pTraceIdOpt CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsNoColor
{-# WARNING pTraceShowNoColor "'pTraceShowNoColor' remains in code" #-}
pTraceShowNoColor :: (Show a) => a -> b -> b
pTraceShowNoColor :: forall a b. Show a => a -> b -> b
pTraceShowNoColor = forall a b. Show a => CheckColorTty -> OutputOptions -> a -> b -> b
pTraceShowOpt CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsNoColor
{-# WARNING pTraceShowIdNoColor "'pTraceShowIdNoColor' remains in code" #-}
pTraceShowIdNoColor :: (Show a) => a -> a
pTraceShowIdNoColor :: forall a. Show a => a -> a
pTraceShowIdNoColor =
forall a. Show a => CheckColorTty -> OutputOptions -> a -> a
pTraceShowIdOpt CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsNoColor
{-# WARNING pTraceMNoColor "'pTraceMNoColor' remains in code" #-}
#if __GLASGOW_HASKELL__ < 800
pTraceMNoColor :: (Monad f) => String -> f ()
#else
pTraceMNoColor :: (Applicative f) => String -> f ()
#endif
pTraceMNoColor :: forall (f :: * -> *). Applicative f => String -> f ()
pTraceMNoColor = forall (f :: * -> *).
Applicative f =>
CheckColorTty -> OutputOptions -> String -> f ()
pTraceOptM CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsNoColor
{-# WARNING pTraceShowMNoColor "'pTraceShowMNoColor' remains in code" #-}
#if __GLASGOW_HASKELL__ < 800
pTraceShowMNoColor :: (Show a, Monad f) => a -> f ()
#else
pTraceShowMNoColor :: (Show a, Applicative f) => a -> f ()
#endif
pTraceShowMNoColor :: forall a (f :: * -> *). (Show a, Applicative f) => a -> f ()
pTraceShowMNoColor = forall a (f :: * -> *).
(Show a, Applicative f) =>
CheckColorTty -> OutputOptions -> a -> f ()
pTraceShowOptM CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsNoColor
{-# WARNING pTraceStackNoColor "'pTraceStackNoColor' remains in code" #-}
pTraceStackNoColor :: String -> a -> a
pTraceStackNoColor :: forall a. String -> a -> a
pTraceStackNoColor = forall a. CheckColorTty -> OutputOptions -> String -> a -> a
pTraceStackOpt CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsNoColor
{-# WARNING pTraceEventNoColor "'pTraceEventNoColor' remains in code" #-}
pTraceEventNoColor :: String -> a -> a
pTraceEventNoColor :: forall a. String -> a -> a
pTraceEventNoColor = forall a. CheckColorTty -> OutputOptions -> String -> a -> a
pTraceEventOpt CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsNoColor
{-# WARNING pTraceEventIONoColor "'pTraceEventIONoColor' remains in code" #-}
pTraceEventIONoColor :: String -> IO ()
pTraceEventIONoColor :: String -> IO ()
pTraceEventIONoColor =
CheckColorTty -> OutputOptions -> String -> IO ()
pTraceEventOptIO CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsNoColor
{-# WARNING pTraceMarkerNoColor "'pTraceMarkerNoColor' remains in code" #-}
pTraceMarkerNoColor :: String -> a -> a
pTraceMarkerNoColor :: forall a. String -> a -> a
pTraceMarkerNoColor =
forall a. CheckColorTty -> OutputOptions -> String -> a -> a
pTraceMarkerOpt CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsNoColor
{-# WARNING pTraceMarkerIONoColor "'pTraceMarkerIONoColor' remains in code" #-}
pTraceMarkerIONoColor :: String -> IO ()
pTraceMarkerIONoColor :: String -> IO ()
pTraceMarkerIONoColor =
CheckColorTty -> OutputOptions -> String -> IO ()
pTraceMarkerOptIO CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsNoColor
{-# WARNING pTraceIONoColor "'pTraceIONoColor' remains in code" #-}
pTraceIONoColor :: String -> IO ()
pTraceIONoColor :: String -> IO ()
pTraceIONoColor = CheckColorTty -> OutputOptions -> String -> IO ()
pTraceOptIO CheckColorTty
NoCheckColorTty OutputOptions
defaultOutputOptionsNoColor
{-# WARNING pTraceOpt "'pTraceOpt' remains in code" #-}
pTraceOpt :: CheckColorTty -> OutputOptions -> String -> a -> a
pTraceOpt :: forall a. CheckColorTty -> OutputOptions -> String -> a -> a
pTraceOpt CheckColorTty
checkColorTty OutputOptions
outputOptions =
forall a. String -> a -> a
trace forall b c a. (b -> c) -> (a -> b) -> a -> c
. Text -> String
unpack forall b c a. (b -> c) -> (a -> b) -> a -> c
. CheckColorTty -> OutputOptions -> String -> Text
pStringTTYOpt CheckColorTty
checkColorTty OutputOptions
outputOptions
{-# WARNING pTraceIdOpt "'pTraceIdOpt' remains in code" #-}
pTraceIdOpt :: CheckColorTty -> OutputOptions -> String -> String
pTraceIdOpt :: CheckColorTty -> OutputOptions -> String -> String
pTraceIdOpt CheckColorTty
checkColorTty OutputOptions
outputOptions String
a =
forall a. CheckColorTty -> OutputOptions -> String -> a -> a
pTraceOpt CheckColorTty
checkColorTty OutputOptions
outputOptions String
a String
a
{-# WARNING pTraceShowOpt "'pTraceShowOpt' remains in code" #-}
pTraceShowOpt :: (Show a) => CheckColorTty -> OutputOptions -> a -> b -> b
pTraceShowOpt :: forall a b. Show a => CheckColorTty -> OutputOptions -> a -> b -> b
pTraceShowOpt CheckColorTty
checkColorTty OutputOptions
outputOptions =
forall a. String -> a -> a
trace forall b c a. (b -> c) -> (a -> b) -> a -> c
. Text -> String
unpack forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. Show a => CheckColorTty -> OutputOptions -> a -> Text
pShowTTYOpt CheckColorTty
checkColorTty OutputOptions
outputOptions
{-# WARNING pTraceShowIdOpt "'pTraceShowIdOpt' remains in code" #-}
pTraceShowIdOpt :: (Show a) => CheckColorTty -> OutputOptions -> a -> a
pTraceShowIdOpt :: forall a. Show a => CheckColorTty -> OutputOptions -> a -> a
pTraceShowIdOpt CheckColorTty
checkColorTty OutputOptions
outputOptions a
a =
forall a. String -> a -> a
trace (Text -> String
unpack forall a b. (a -> b) -> a -> b
$ forall a. Show a => CheckColorTty -> OutputOptions -> a -> Text
pShowTTYOpt CheckColorTty
checkColorTty OutputOptions
outputOptions a
a) a
a
{-# WARNING pTraceOptIO "'pTraceOptIO' remains in code" #-}
pTraceOptIO :: CheckColorTty -> OutputOptions -> String -> IO ()
pTraceOptIO :: CheckColorTty -> OutputOptions -> String -> IO ()
pTraceOptIO CheckColorTty
checkColorTty OutputOptions
outputOptions =
String -> IO ()
traceIO forall b c a. (b -> c) -> (a -> b) -> a -> c
. Text -> String
unpack forall (m :: * -> *) b c a.
Monad m =>
(b -> m c) -> (a -> m b) -> a -> m c
<=< CheckColorTty -> OutputOptions -> String -> IO Text
pStringTTYOptIO CheckColorTty
checkColorTty OutputOptions
outputOptions
{-# WARNING pTraceOptM "'pTraceOptM' remains in code" #-}
#if __GLASGOW_HASKELL__ < 800
pTraceOptM :: (Monad f) => CheckColorTty -> OutputOptions -> String -> f ()
#else
pTraceOptM ::
(Applicative f) => CheckColorTty -> OutputOptions -> String -> f ()
#endif
pTraceOptM :: forall (f :: * -> *).
Applicative f =>
CheckColorTty -> OutputOptions -> String -> f ()
pTraceOptM CheckColorTty
checkColorTty OutputOptions
outputOptions String
string =
forall a. String -> a -> a
trace (Text -> String
unpack forall a b. (a -> b) -> a -> b
$ CheckColorTty -> OutputOptions -> String -> Text
pStringTTYOpt CheckColorTty
checkColorTty OutputOptions
outputOptions String
string) forall a b. (a -> b) -> a -> b
$ forall (f :: * -> *) a. Applicative f => a -> f a
pure ()
{-# WARNING pTraceShowOptM "'pTraceShowOptM' remains in code" #-}
#if __GLASGOW_HASKELL__ < 800
pTraceShowOptM ::
(Show a, Monad f) => CheckColorTty -> OutputOptions -> a -> f ()
#else
pTraceShowOptM ::
(Show a, Applicative f) => CheckColorTty -> OutputOptions -> a -> f ()
#endif
pTraceShowOptM :: forall a (f :: * -> *).
(Show a, Applicative f) =>
CheckColorTty -> OutputOptions -> a -> f ()
pTraceShowOptM CheckColorTty
checkColorTty OutputOptions
outputOptions =
forall (f :: * -> *). Applicative f => String -> f ()
traceM forall b c a. (b -> c) -> (a -> b) -> a -> c
. Text -> String
unpack forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. Show a => CheckColorTty -> OutputOptions -> a -> Text
pShowTTYOpt CheckColorTty
checkColorTty OutputOptions
outputOptions
{-# WARNING pTraceStackOpt "'pTraceStackOpt' remains in code" #-}
pTraceStackOpt :: CheckColorTty -> OutputOptions -> String -> a -> a
pTraceStackOpt :: forall a. CheckColorTty -> OutputOptions -> String -> a -> a
pTraceStackOpt CheckColorTty
checkColorTty OutputOptions
outputOptions =
forall a. String -> a -> a
traceStack forall b c a. (b -> c) -> (a -> b) -> a -> c
. Text -> String
unpack forall b c a. (b -> c) -> (a -> b) -> a -> c
. CheckColorTty -> OutputOptions -> String -> Text
pStringTTYOpt CheckColorTty
checkColorTty OutputOptions
outputOptions
{-# WARNING pTraceEventOpt "'pTraceEventOpt' remains in code" #-}
pTraceEventOpt :: CheckColorTty -> OutputOptions -> String -> a -> a
pTraceEventOpt :: forall a. CheckColorTty -> OutputOptions -> String -> a -> a
pTraceEventOpt CheckColorTty
checkColorTty OutputOptions
outputOptions =
forall a. String -> a -> a
traceEvent forall b c a. (b -> c) -> (a -> b) -> a -> c
. Text -> String
unpack forall b c a. (b -> c) -> (a -> b) -> a -> c
. CheckColorTty -> OutputOptions -> String -> Text
pStringTTYOpt CheckColorTty
checkColorTty OutputOptions
outputOptions
{-# WARNING pTraceEventOptIO "'pTraceEventOptIO' remains in code" #-}
pTraceEventOptIO :: CheckColorTty -> OutputOptions -> String -> IO ()
pTraceEventOptIO :: CheckColorTty -> OutputOptions -> String -> IO ()
pTraceEventOptIO CheckColorTty
checkColorTty OutputOptions
outputOptions =
String -> IO ()
traceEventIO forall b c a. (b -> c) -> (a -> b) -> a -> c
. Text -> String
unpack forall (m :: * -> *) b c a.
Monad m =>
(b -> m c) -> (a -> m b) -> a -> m c
<=< CheckColorTty -> OutputOptions -> String -> IO Text
pStringTTYOptIO CheckColorTty
checkColorTty OutputOptions
outputOptions
{-# WARNING pTraceMarkerOpt "'pTraceMarkerOpt' remains in code" #-}
pTraceMarkerOpt :: CheckColorTty -> OutputOptions -> String -> a -> a
pTraceMarkerOpt :: forall a. CheckColorTty -> OutputOptions -> String -> a -> a
pTraceMarkerOpt CheckColorTty
checkColorTty OutputOptions
outputOptions =
forall a. String -> a -> a
traceMarker forall b c a. (b -> c) -> (a -> b) -> a -> c
. Text -> String
unpack forall b c a. (b -> c) -> (a -> b) -> a -> c
. CheckColorTty -> OutputOptions -> String -> Text
pStringTTYOpt CheckColorTty
checkColorTty OutputOptions
outputOptions
{-# WARNING pTraceMarkerOptIO "'pTraceMarkerOptIO' remains in code" #-}
pTraceMarkerOptIO :: CheckColorTty -> OutputOptions -> String -> IO ()
pTraceMarkerOptIO :: CheckColorTty -> OutputOptions -> String -> IO ()
pTraceMarkerOptIO CheckColorTty
checkColorTty OutputOptions
outputOptions =
String -> IO ()
traceMarkerIO forall b c a. (b -> c) -> (a -> b) -> a -> c
. Text -> String
unpack forall (m :: * -> *) b c a.
Monad m =>
(b -> m c) -> (a -> m b) -> a -> m c
<=< CheckColorTty -> OutputOptions -> String -> IO Text
pStringTTYOptIO CheckColorTty
checkColorTty OutputOptions
outputOptions