HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulebase64-bytestring-type-1.0.1Haskell2010

Data.ByteString.Base64.URL.Lazy.Type

Lazy ByteString base64 encoding with URL and filename safe alphabet.

See https://tools.ietf.org/html/rfc4648.

  • 1 type
  • 5 values
newtypenewtype ByteString64
#

Aeson serialisable bytestring. Uses base64 encoding.

The inner ByteString is in raw format.

Example2 expressions
let bs64 = makeByteString64 "foobar"bs64mkBS64 "foobar"

Binary instance doesn't use base64 encoding:

Example1 expression
Binary.encode bs64"\NUL\NUL\NUL\NUL\NUL\NUL\NUL\ACKfoobar"

Aeson instance does:

Example1 expression
Aeson.encode bs64"\"Zm9vYmFy\""

This module uses standard alphabet

Example1 expression
Aeson.encode (makeByteString64 "aa\191")"\"YWG_\""
Instances21Eq, Data, Ord, Show, IsString, Generic, …