Safe Haskell | None |
---|---|
Language | GHC2024 |
Synopsis
- renderSql' :: forall {k} a (b :: k). RenderSql a b => Proxy b -> a -> Text
- renderSqlErr :: forall {k} a (b :: k). RenderSql a b => Proxy b -> a -> Either Text Text
- renderSqlWith :: forall {k} a (b :: k). RenderSql a b => Style -> Proxy b -> a -> Text
- renderSqlCollapsed :: forall {k} a (b :: k). RenderSql a b => Proxy b -> a -> Text
- styleCollapsed :: Style
- class RenderSql a (backend :: k) where
- data RenderedSql = RenderSql a backend => RenderedSql (Proxy backend) a
- newtype Unshow = Unshow Text
- debugSql' :: forall {k} (b :: k) a. RenderSql a b => a -> Unshow
Documentation
renderSql' :: forall {k} a (b :: k). RenderSql a b => Proxy b -> a -> Text #
renderSqlCollapsed :: forall {k} a (b :: k). RenderSql a b => Proxy b -> a -> Text #
styleCollapsed :: Style #
class RenderSql a (backend :: k) where #
If one day we support multiple backends, one option would be for this typeclass to take a (Proxy backend) argument to dispatch on the right backend.
Instances
data RenderedSql #
RenderSql a backend => RenderedSql (Proxy backend) a |
Workaround for HLS eval plugin (using show) not handling multiline output well