Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
class DumpPayload a b where #
renderDumpPayload_ :: a -> Doc #
Instances
(RenderSql a b, ReifiesBackend b) => DumpPayload a (b :: Type) # | |
Defined in Napkin.Run.Effects.Interceptors.LogProgram renderDumpPayload_ :: a -> Doc # | |
DumpPayload String (b :: k) # | |
Defined in Napkin.Run.Effects.Interceptors.LogProgram renderDumpPayload_ :: String -> Doc # |
type IsRenderable a b = (Show a, Eq a, DumpPayload a b, Typeable a) #
data Renderable b #
forall a.IsRenderable a b => Renderable a |
Instances
Show (Renderable b) # | |
Defined in Napkin.Run.Effects.Interceptors.LogProgram showsPrec :: Int -> Renderable b -> ShowS # show :: Renderable b -> String # showList :: [Renderable b] -> ShowS # | |
Eq (Renderable b) # | |
Defined in Napkin.Run.Effects.Interceptors.LogProgram (==) :: Renderable b -> Renderable b -> Bool # (/=) :: Renderable b -> Renderable b -> Bool # |
renderDumpPayload :: forall b. Renderable b -> Doc #
pattern SimpleDumpItem :: Doc -> DumpItem b #
type DumpBackendRequirements b = (Show (BackendTableMeta b), Show (BackendViewMeta b), Show (BackendMaterializedViewMeta b), Eq (BackendTableMeta b), Eq (BackendViewMeta b), Eq (YamlBackendMaterializedViewMeta b), Default (BackendTableMeta b), Default (BackendViewMeta b), MaybeDefault (YamlBackendMaterializedViewMeta b), RenderSql Query b, RenderSql SExp b, RenderSql UpdateQuery b, RenderSql (Ref Table) b, RenderSql From b, RenderSql Name b, ReifiesBackend b) #
interceptDumpLog :: forall b r a. (Members [Output (DumpItem b), AnnotateRead b, AnnotateWrite b, SqlWrite b, SqlRead b, External, Log, Assertion] r, DumpBackendRequirements b) => Sem r a -> Sem r a #
class ToDumpItem b a where #
toDumpItem :: forall r x. a (Sem r) x -> DumpItem b #