HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulefmt-0.6.3.0Haskell2010

Fmt.Internal

A module providing access to internals (in case you really need them). Can change at any time, though probably won't.

  • 2 classes
  • Packagefmt-0.6.3.0
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceInternal.hs

Classes

2 declarations
classclass FormatAsBase64 a where
#

Methods

  • base64F :: a -> Builder

    Convert a bytestring to base64:

    Example1 expression
    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):

    Example1 expression
    base64UrlF ("\0\50\63\80" :: BS.ByteString)"ADI_UA=="
Instances2FormatAsBase64

Reexports

0 declarations