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
- 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 #
fromBuilder :: Builder -> a #
Convert a Builder
to something else.
FromBuilder Text # | |
FromBuilder Text # | |
FromBuilder Builder # | |
(~) * a Char => FromBuilder [a] # | |
(~) * a () => FromBuilder (IO a) # | |
class FormatAsHex a where #
Format a number or bytestring as hex:
>>>
hexF 3635
"e33">>>
hexF ("\0\50\63\80" :: BS.ByteString)
"00323f50"
class FormatAsBase64 a where #
Convert a bytestring to base64:
>>>
base64F ("\0\50\63\80" :: BS.ByteString)
"ADI/UA=="
base64UrlF :: a -> Builder #
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 #
A more powerful Buildable
used for genericF
. Can build functions,
tuples, lists, maps, etc., as well as combinations thereof.
Helpers
showSigned' :: Real a => (a -> ShowS) -> a -> ShowS #
intToDigit' :: Int -> Char #