Copyright | (c) 2019-2021 Emily Pillmore |
---|---|
License | BSD-style |
Maintainer | Emily Pillmore <emilypi@cohomolo.gy> |
Stability | Experimental |
Portability | non-portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Synopsis
- _Base64 :: Prism' ShortText ShortText
- _Base64Url :: Prism' ShortText ShortText
- _Base64UrlUnpadded :: Prism' ShortText ShortText
- _Base64Lenient :: Iso' ShortText ShortText
- _Base64UrlLenient :: Iso' ShortText ShortText
- pattern Base64 :: ShortText -> ShortText
- pattern Base64Url :: ShortText -> ShortText
- pattern Base64UrlUnpadded :: ShortText -> ShortText
- pattern Base64Lenient :: ShortText -> ShortText
- pattern Base64UrlLenient :: ShortText -> ShortText
Prisms
_Base64UrlUnpadded :: Prism' ShortText ShortText Source #
A Prism
into the Base64-url encoding of a ShortText
value.
Please note that unpadded variants should only be used when assumptions about the data can be made. In particular, if the length of the input is divisible by 3, then this is a safe function to call.
>>>
_Base64UrlUnpadded # "<<??>>"
"PDw_Pz4-"
>>>
"PDw_Pz4-" ^? _Base64UrlUnpadded
Just "<<??>>"
Patterns
pattern Base64 :: ShortText -> ShortText Source #
Unidirectional pattern synonym for base64-encoded ShortText
values.
pattern Base64Url :: ShortText -> ShortText Source #
Unidirectional pattern synonym for base64url-encoded ShortText
values.
pattern Base64UrlUnpadded :: ShortText -> ShortText Source #
Unidirectional pattern synonym for unpadded base64url-encoded ShortText
values.