| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Fmt.Internal
Description
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 #
Minimal complete definition
Instances
| FromBuilder Text # | |
| FromBuilder Text # | |
| FromBuilder Builder # | |
| (~) * a Char => FromBuilder [a] # | |
| (~) * a () => FromBuilder (IO a) # | |
class FormatAsHex a where #
Minimal complete definition
Methods
Format a number or bytestring as hex:
>>>hexF 3635"e33">>>hexF ("\0\50\63\80" :: BS.ByteString)"00323f50"
Instances
class FormatAsBase64 a where #
Minimal complete definition
Methods
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=="
Instances
Minimal complete definition
Classes used for genericF
Minimal complete definition
class Buildable' a where #
A more powerful Buildable used for genericF. Can build functions,
tuples, lists, maps, etc., as well as combinations thereof.
Minimal complete definition
Helpers
showSigned' :: Real a => (a -> ShowS) -> a -> ShowS #
intToDigit' :: Int -> Char #