Safe Haskell | None |
---|---|
Language | Haskell2010 |
A module providing access to internals (in case you really need them). Can change at any time, though probably won't.
- class FromBuilder a where
- class FormatAsHex a where
- class FormatAsBase64 a where
- class TupleF a where
- class GBuildable f where
- class GetFields f where
- class Buildable' a where
- class FormatType r where
- groupInt :: (Buildable a, Integral a) => Int -> Char -> a -> Builder
- atBase :: Integral a => Int -> a -> String
- showSigned' :: Real a => (a -> ShowS) -> a -> ShowS
- intToDigit' :: Int -> Char
- indent' :: Int -> Text -> Builder -> Builder
Classes
class FromBuilder a where Source #
fromBuilder :: Builder -> a Source #
Convert a Builder
to something else.
FromBuilder Builder Source # | |
FromBuilder Text Source # | |
FromBuilder Text Source # | |
(~) * a Char => FromBuilder [a] Source # | |
(~) * a () => FromBuilder (IO a) Source # | |
class FormatAsHex a where Source #
Format a number or bytestring as hex:
>>>
hexF 3635
"e33">>>
hexF ("\0\50\63\80" :: BS.ByteString)
"00323f50"
class FormatAsBase64 a where Source #
base64F :: a -> Builder Source #
Convert a bytestring to base64:
>>>
base64F ("\0\50\63\80" :: BS.ByteString)
"ADI/UA=="
base64UrlF :: a -> Builder Source #
Convert a bytestring to base64url (a variant of base64 which omits /
and
thus can be used in URLs):
>>>
base64UrlF ("\0\50\63\80" :: BS.ByteString)
"ADI_UA=="
Classes used for genericF
class Buildable' a where Source #
A more powerful Buildable
used for genericF
. Can build functions,
tuples, lists, maps, etc., as well as combinations thereof.
Polyvariadic format
class FormatType r where Source #
Something like PrintfType
in Text.Printf.
FromBuilder r => FormatType r Source # | |
(Buildable a, FormatType r) => FormatType (a -> r) Source # | |
Helpers
intToDigit' :: Int -> Char Source #