napkin-spec-2.0.0
Safe HaskellNone
LanguageGHC2024

Napkin.Run.Effects.Interceptors.LogProgram.Types

Documentation

class DumpPayload a (b :: k) where #

Methods

renderDumpPayload_ :: a -> Doc #

Instances

Instances details
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

RenderSql a b => DumpPayload a (b :: k) # 
Instance details

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

Methods

renderDumpPayload_ :: a -> Doc #

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-spec-2.0.0-K8Z80aIHKAH2qnB4rTEZon" 'False) (C1 ('MetaCons "DumpItem" 'PrefixI 'True) (S1 ('MetaSel ('Just "query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Renderable b))) :*: (S1 ('MetaSel ('Just "hashComponents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (HashComponents 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-spec-2.0.0-K8Z80aIHKAH2qnB4rTEZon" 'False) (C1 ('MetaCons "DumpItem" 'PrefixI 'True) (S1 ('MetaSel ('Just "query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Renderable b))) :*: (S1 ('MetaSel ('Just "hashComponents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (HashComponents b)) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc RenderInfoFormatting)))))

renderableDumpItem :: forall {k} a (b :: k). (IsRenderable a b, ToHashComponent b a) => Text -> a -> Doc RenderInfoFormatting -> DumpItem b #

class ToDumpItem (b :: k) (a :: (Type -> Type) -> k1 -> Type) where #

Methods

toDumpItem :: forall (r :: EffectRow) (x :: k1). a (Sem r) x -> DumpItem b #

Instances

Instances details
ToDumpItem (b :: k) (Assertion :: (Type -> Type) -> Type -> Type) # 
Instance details

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

Methods

toDumpItem :: forall (r :: EffectRow) x. Assertion (Sem r) x -> DumpItem b #

ToDumpItem (b :: k) (External :: (Type -> Type) -> Type -> Type) # 
Instance details

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

Methods

toDumpItem :: forall (r :: EffectRow) x. External (Sem r) x -> DumpItem b #

ToDumpItem (b :: k) (Log :: (Type -> Type) -> Type -> Type) # 
Instance details

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

Methods

toDumpItem :: forall (r :: EffectRow) x. Log (Sem r) x -> DumpItem b #

ToDumpItem (b :: k) (Reader TableMemos) # 
Instance details

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

Methods

toDumpItem :: forall (r :: EffectRow) x. Reader TableMemos (Sem r) x -> DumpItem b #

(Default (BackendTableMeta b), Default (BackendViewMeta b), Eq (BackendMaterializedViewMeta b), Eq (BackendTableMeta b), Eq (BackendViewMeta b), Eq (YamlBackendMaterializedViewMeta b), IsRenderable Query b, IsRenderable SExp b, IsRenderable Statement b, IsRenderable Text b, IsRenderable UpdateQuery b, MaybeDefault (YamlBackendMaterializedViewMeta b), Show (BackendMaterializedViewMeta b), Show (BackendTableMeta b), Show (BackendViewMeta b), ToHashComponent b (BackendMaterializedViewMeta b), ToHashComponent b (BackendTableMeta b), ToHashComponent b (BackendViewMeta b), Typeable (BackendMaterializedViewMeta b), Typeable (BackendTableMeta b), Typeable (BackendViewMeta b)) => ToDumpItem (b :: Type) (SqlWrite b :: (Type -> Type) -> Type -> Type) # 
Instance details

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

Methods

toDumpItem :: forall (r :: EffectRow) x. SqlWrite b (Sem r) x -> DumpItem b #

ToDumpItem (b :: k) (Output TableMemo :: (Type -> Type) -> Type -> Type) # 
Instance details

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

Methods

toDumpItem :: forall (r :: EffectRow) x. Output TableMemo (Sem r) x -> DumpItem b #

ToDumpItem (b :: k) (AnnotateRead b :: (Type -> Type) -> Type -> Type) # 
Instance details

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

Methods

toDumpItem :: forall (r :: EffectRow) x. AnnotateRead b (Sem r) x -> DumpItem b #

ToDumpItem (b :: k) (AnnotateWrite b :: (Type -> Type) -> Type -> Type) # 
Instance details

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

Methods

toDumpItem :: forall (r :: EffectRow) x. AnnotateWrite b (Sem r) x -> DumpItem b #

(IsRenderable Query b, IsRenderable SExp b, IsRenderable Text b) => ToDumpItem (b :: k) (SqlRead b :: (Type -> Type) -> Type -> Type) # 
Instance details

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

Methods

toDumpItem :: forall (r :: EffectRow) x. SqlRead b (Sem r) x -> DumpItem b #

toHashComponents :: forall {k} (bk :: k) a. ToHashComponent bk a => Text -> a -> HashComponents bk #

formatRef :: forall {k} (t :: k). Ref t -> Doc RenderInfoFormatting #

class ToHashComponent (b :: k) a where #

Instances

Instances details
ToHashComponent (b :: k) Int64 # 
Instance details

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

DumpPayload Query b => ToHashComponent (b :: k) Query # 
Instance details

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

DumpPayload SExp b => ToHashComponent (b :: k) SExp # 
Instance details

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

ToHashComponent (b :: k) Type # 
Instance details

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

DumpPayload UpdateQuery b => ToHashComponent (b :: k) UpdateQuery # 
Instance details

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

ToHashComponent (b :: k) HashComponent # 
Instance details

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

ToHashComponent (b :: k) AssertionGroup # 
Instance details

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

ToHashComponent (b :: k) AssertionSeverity # 
Instance details

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

ToHashComponent (b :: k) Cascade # 
Instance details

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

ToHashComponent (b :: k) MissingBehavior # 
Instance details

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

ToHashComponent (b :: k) TableWriteStrategy # 
Instance details

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

DumpPayload Statement b => ToHashComponent (b :: k) Statement # 
Instance details

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

ToHashComponent (b :: k) Text # 
Instance details

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

ToHashComponent (b :: k) NominalDiffTime # 
Instance details

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

ToHashComponent (b :: k) UTCTime # 
Instance details

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

ToHashComponent (b :: k) Integer # 
Instance details

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

ToHashComponent (b :: k) () # 
Instance details

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

ToHashComponent (b :: k) Bool # 
Instance details

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

ToHashComponent (b :: k) Double # 
Instance details

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

ToHashComponent (b :: k) Int # 
Instance details

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

ToHashComponent b a => ToHashComponent (b :: k) (Set a) # 
Instance details

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

ToHashComponent b a => ToHashComponent (b :: k) (NonEmpty a) # 
Instance details

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

(GToHashComponent b (Rep a), Generic a) => ToHashComponent (b :: k) (Generically a) # 
Instance details

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

Show a => ToHashComponent (b :: k) (ShowHashComponent a) # 
Instance details

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

ToHashComponent b a => ToHashComponent (b :: k) (Maybe a) # 
Instance details

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

ToHashComponent b a => ToHashComponent (b :: k) [a] # 
Instance details

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

(ToHashComponent b x, ToHashComponent b y) => ToHashComponent (b :: k) (Either x y) # 
Instance details

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

(Hashable a, ToHashComponent b a, ToHashComponent b x) => ToHashComponent (b :: k) (HashMap a x) # 
Instance details

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

(ToHashComponent b x, ToHashComponent b y) => ToHashComponent (b :: k) (x, y) # 
Instance details

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

Methods

toHashComponent :: (x, y) -> HashComponent #

ToHashComponent (b :: k1) (Ref a) # 
Instance details

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

DumpPayload a b => ToHashComponent (b :: k) (DumpPayloadHashComponent b a) # 
Instance details

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

(ToHashComponent b x, ToHashComponent b y, ToHashComponent b z) => ToHashComponent (b :: k) (x, y, z) # 
Instance details

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

Methods

toHashComponent :: (x, y, z) -> HashComponent #

(Foldable f, ToHashComponent b a) => ToHashComponent (b :: k) (FoldableHashComponent f b a) # 
Instance details

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

newtype ShowHashComponent a #

Constructors

ShowHashComponent a 

Instances

Instances details
Show a => ToHashComponent (b :: k) (ShowHashComponent a) # 
Instance details

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

class GToHashComponent (b :: k) (f :: k1 -> Type) where #

Methods

gToHashComponent :: forall (a :: k1). f a -> HashComponent #

Instances

Instances details
GToHashComponent (b :: k1) (U1 :: k2 -> Type) # 
Instance details

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

Methods

gToHashComponent :: forall (a :: k2). U1 a -> HashComponent #

GToHashComponent (b :: k1) (V1 :: k2 -> Type) # 
Instance details

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

Methods

gToHashComponent :: forall (a :: k2). V1 a -> HashComponent #

(GToHashComponent b x, GToHashComponent b y) => GToHashComponent (b :: k1) (x :*: y :: k2 -> Type) # 
Instance details

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

Methods

gToHashComponent :: forall (a :: k2). (x :*: y) a -> HashComponent #

(GToHashComponent b x, GToHashComponent b y) => GToHashComponent (b :: k1) (x :+: y :: k2 -> Type) # 
Instance details

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

Methods

gToHashComponent :: forall (a :: k2). (x :+: y) a -> HashComponent #

(Constructor m, GToHashComponent b a) => GToHashComponent (b :: k1) (C1 m a :: k2 -> Type) # 
Instance details

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

Methods

gToHashComponent :: forall (a0 :: k2). C1 m a a0 -> HashComponent #

GToHashComponent b a => GToHashComponent (b :: k1) (D1 m a :: k2 -> Type) # 
Instance details

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

Methods

gToHashComponent :: forall (a0 :: k2). D1 m a a0 -> HashComponent #

ToHashComponent b a => GToHashComponent (b :: k1) (K1 m a :: k2 -> Type) # 
Instance details

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

Methods

gToHashComponent :: forall (a0 :: k2). K1 m a a0 -> HashComponent #

(GToHashComponent b a, Selector m) => GToHashComponent (b :: k1) (S1 m a :: k2 -> Type) # 
Instance details

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

Methods

gToHashComponent :: forall (a0 :: k2). S1 m a a0 -> HashComponent #

newtype FoldableHashComponent (f :: k -> Type) (b :: k1) (a :: k) #

Constructors

FoldableHashComponent (f a) 

Instances

Instances details
(Foldable f, ToHashComponent b a) => ToHashComponent (b :: k) (FoldableHashComponent f b a) # 
Instance details

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

newtype HashComponents (b :: k) #

Constructors

HashComponents [HashComponent' b] 

Instances

Instances details
Monoid (HashComponents b) # 
Instance details

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

Semigroup (HashComponents b) # 
Instance details

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

Generic (HashComponents b) # 
Instance details

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

Associated Types

type Rep (HashComponents b) 
Instance details

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

Show (HashComponents b) # 
Instance details

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

Eq (HashComponents b) # 
Instance details

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

type Rep (HashComponents b) # 
Instance details

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

nonHashableProgram :: forall {k} (b :: k). HashComponents b #

excludedHashProgram :: forall {k} (b :: k). HashComponents b #

data ProgramHash #

Instances

Instances details
FromJSON ProgramHash # 
Instance details

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

ToJSON ProgramHash # 
Instance details

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

Buildable ProgramHash # 
Instance details

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

Methods

build :: ProgramHash -> Builder #

Generic ProgramHash # 
Instance details

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

Associated Types

type Rep ProgramHash 
Instance details

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

type Rep ProgramHash = D1 ('MetaData "ProgramHash" "Napkin.Run.Effects.Interceptors.LogProgram.Types" "napkin-spec-2.0.0-K8Z80aIHKAH2qnB4rTEZon" 'False) (C1 ('MetaCons "EmptyHash" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ProgramHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "UnhashableProgram" 'PrefixI 'False) (U1 :: Type -> Type)))
Show ProgramHash # 
Instance details

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

Eq ProgramHash # 
Instance details

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

type Rep ProgramHash # 
Instance details

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

type Rep ProgramHash = D1 ('MetaData "ProgramHash" "Napkin.Run.Effects.Interceptors.LogProgram.Types" "napkin-spec-2.0.0-K8Z80aIHKAH2qnB4rTEZon" 'False) (C1 ('MetaCons "EmptyHash" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ProgramHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "UnhashableProgram" 'PrefixI 'False) (U1 :: Type -> Type)))

getProgramHash :: forall {k} (b :: k). HashComponents b -> ProgramHash #