| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Napkin.Run.Effects.Interceptors.LogProgram
Contents
Documentation
type Renderable = Either Query SExp #
pattern SimpleDumpItem :: Doc -> DumpItem #
interceptDumpLog :: forall b r a. (Members [Output DumpItem, SqlWrite b, SqlRead, ExternalCreate, Log] r, Show (BackendTableMeta b), Show (BackendViewMeta b), Show (BackendMaterializedViewMeta b)) => Sem r a -> Sem r a #
class ToDumpItem a where #
Methods
toDumpItem :: forall r x. a (Sem r) x -> DumpItem #
Instances
| ToDumpItem (Log :: (Type -> Type) -> Type -> Type) # | |
Defined in Napkin.Run.Effects.Interceptors.LogProgram | |
| ToDumpItem (SqlRead :: (Type -> Type) -> Type -> Type) # | |
Defined in Napkin.Run.Effects.Interceptors.LogProgram | |
| ToDumpItem (ExternalCreate :: (Type -> Type) -> Type -> Type) # | |
Defined in Napkin.Run.Effects.Interceptors.LogProgram Methods toDumpItem :: forall (r :: EffectRow) (x :: k). ExternalCreate (Sem r) x -> DumpItem # | |
| (Show (BackendTableMeta b), Show (BackendViewMeta b), Show (BackendMaterializedViewMeta b)) => ToDumpItem (SqlWrite b :: (Type -> Type) -> Type -> Type) # | |
Defined in Napkin.Run.Effects.Interceptors.LogProgram | |
Orphan instances
| FromBuilder Doc # | |
Methods fromBuilder :: Builder -> Doc # | |
| (RenderSql Query b, RenderSql SExp b) => RenderSql Renderable b # | |
Methods renderSql :: b -> Renderable -> Doc # | |