{-# LANGUAGE FlexibleContexts #-}
module TextShow.Debug.Trace.Generic (
genericTraceTextShow
, genericTraceTextShowId
, genericTraceTextShowM
) where
import Generics.Deriving.Base (Generic, Rep)
import Prelude ()
import Prelude.Compat
import TextShow.Debug.Trace
import TextShow.Generic (GTextShowT, genericShowt)
genericTraceTextShow :: (Generic a, GTextShowT (Rep a ())) => a -> b -> b
genericTraceTextShow :: forall a b. (Generic a, GTextShowT (Rep a ())) => a -> b -> b
genericTraceTextShow = forall a. Text -> a -> a
tracet forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. (Generic a, GTextShowT (Rep a ())) => a -> Text
genericShowt
genericTraceTextShowId :: (Generic a, GTextShowT (Rep a ())) => a -> a
genericTraceTextShowId :: forall a. (Generic a, GTextShowT (Rep a ())) => a -> a
genericTraceTextShowId a
a = forall a. Text -> a -> a
tracet (forall a. (Generic a, GTextShowT (Rep a ())) => a -> Text
genericShowt a
a) a
a
genericTraceTextShowM :: (Generic a, GTextShowT (Rep a ()), Applicative f) => a -> f ()
genericTraceTextShowM :: forall a (f :: * -> *).
(Generic a, GTextShowT (Rep a ()), Applicative f) =>
a -> f ()
genericTraceTextShowM = forall (f :: * -> *). Applicative f => Text -> f ()
tracetM forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. (Generic a, GTextShowT (Rep a ())) => a -> Text
genericShowt