napkin-0.5.9
Copyright(c) Soostone Inc 2020
LicenseAllRightsReserved
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Napkin.Render.Common

Description

 
Synopsis

Documentation

renderAlias :: forall b a. RenderSql a b => (a -> Doc) -> (Ref a -> Doc) -> Alias a -> Doc #

spaced :: Doc -> Doc #

spc :: Doc #

funcall_ :: (Doc -> Doc) -> Ref Function -> Doc -> Doc #

funcallArgs_ :: RenderSql SExp b => (Doc -> Doc) -> b -> Ref Function -> [SExp] -> Doc #

renderRef_ :: (Doc -> Doc) -> Ref a -> Doc #

renderName_ :: (Doc -> Doc) -> Name -> Doc #

argList :: RenderSql e b => b -> [e] -> Doc #

funNorm :: Ref Function -> Ref Function #

Normalize a function's name for equality checks.

rendOp :: RenderSql SExp b => b -> Ref Function -> [SExp] -> Doc #

maybeRender :: (a -> Doc) -> Maybe a -> Doc #

renderError :: Show a => Ref t -> Text -> a -> e #

Orphan instances

RenderSql (Alias SExp) backend => RenderSql [Alias SExp] backend # 
Instance details

Methods

renderSql :: backend -> [Alias SExp] -> Doc #