Copyright | (c) Eitan Chatav 2017 |
---|---|
Maintainer | [email protected] |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Squeal.PostgreSQL.Prettyprint
Description
Pretty print helper functions.
- parenthesized :: ByteString -> ByteString
- (<+>) :: ByteString -> ByteString -> ByteString
- commaSeparated :: [ByteString] -> ByteString
- renderCommaSeparated :: SListI xs => (forall x. expression x -> ByteString) -> NP expression xs -> ByteString
- renderCommaSeparatedMaybe :: SListI xs => (forall x. expression x -> Maybe ByteString) -> NP expression xs -> ByteString
- renderNat :: KnownNat n => proxy n -> ByteString
Documentation
parenthesized :: ByteString -> ByteString Source #
Parenthesize a ByteString
.
(<+>) :: ByteString -> ByteString -> ByteString Source #
Concatenate two ByteString
s with a space between.
commaSeparated :: [ByteString] -> ByteString Source #
Comma separate a list of ByteString
s.
renderCommaSeparated :: SListI xs => (forall x. expression x -> ByteString) -> NP expression xs -> ByteString Source #
Comma separate the renderings of a heterogeneous list.
renderCommaSeparatedMaybe :: SListI xs => (forall x. expression x -> Maybe ByteString) -> NP expression xs -> ByteString Source #