napkin-1.0.0
Safe HaskellNone
LanguageGHC2021

Napkin.Run.Effects.Interceptors.LogProgram.Types

Documentation

class DumpPayload a (b :: k) where #

Methods

renderDumpPayload_ :: a -> Doc #

Instances

Instances details
(RenderSql a b, ReifiesBackend b) => DumpPayload a (b :: Type) # 
Instance details

Defined in Napkin.Run.Effects.Interceptors.LogProgram.Types

Methods

renderDumpPayload_ :: a -> Doc #

DumpPayload LText (b :: k) # 
Instance details

Defined in Napkin.Run.Effects.Interceptors.LogProgram.Types

DumpPayload Text (b :: k) # 
Instance details

Defined in Napkin.Run.Effects.Interceptors.LogProgram.Types

type IsRenderable a (b :: k) = (Show a, Eq a, DumpPayload a b, Typeable a) #

data Renderable (b :: k) #

Constructors

IsRenderable a b => Renderable a 

Instances

Instances details
Show (Renderable b) # 
Instance details

Defined in Napkin.Run.Effects.Interceptors.LogProgram.Types

Eq (Renderable b) # 
Instance details

Defined in Napkin.Run.Effects.Interceptors.LogProgram.Types

Methods

(==) :: Renderable b -> Renderable b -> Bool #

(/=) :: Renderable b -> Renderable b -> Bool #

renderDumpPayload :: forall {k} (b :: k). Renderable b -> Doc #

data DumpItem (b :: k) #

Instances

Instances details
Generic (DumpItem b) # 
Instance details

Defined in Napkin.Run.Effects.Interceptors.LogProgram.Types

Associated Types

type Rep (DumpItem b) 
Instance details

Defined in Napkin.Run.Effects.Interceptors.LogProgram.Types

type Rep (DumpItem b) = D1 ('MetaData "DumpItem" "Napkin.Run.Effects.Interceptors.LogProgram.Types" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "DumpItem" 'PrefixI 'True) (S1 ('MetaSel ('Just "query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Renderable b))) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc RenderInfoFormatting))))

Methods

from :: DumpItem b -> Rep (DumpItem b) x #

to :: Rep (DumpItem b) x -> DumpItem b #

Show (DumpItem b) # 
Instance details

Defined in Napkin.Run.Effects.Interceptors.LogProgram.Types

Methods

showsPrec :: Int -> DumpItem b -> ShowS #

show :: DumpItem b -> String #

showList :: [DumpItem b] -> ShowS #

Eq (DumpItem b) # 
Instance details

Defined in Napkin.Run.Effects.Interceptors.LogProgram.Types

Methods

(==) :: DumpItem b -> DumpItem b -> Bool #

(/=) :: DumpItem b -> DumpItem b -> Bool #

type Rep (DumpItem b) # 
Instance details

Defined in Napkin.Run.Effects.Interceptors.LogProgram.Types

type Rep (DumpItem b) = D1 ('MetaData "DumpItem" "Napkin.Run.Effects.Interceptors.LogProgram.Types" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "DumpItem" 'PrefixI 'True) (S1 ('MetaSel ('Just "query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Renderable b))) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc RenderInfoFormatting))))