Copyright | (c) 2019-2020 Emily Pillmore |
---|---|
License | BSD-style |
Maintainer | Emily Pillmore <emilypi@cohomolo.gy> |
Stability | Experimental |
Portability | non-portable |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
This module contains Prism'
s and Iso'
s for Base16-encoding and
decoding ShortByteString
values.
Synopsis
- _Hex :: Prism' ShortByteString ShortByteString
- _Base16 :: Prism' ShortByteString ShortByteString
- _Base16Lenient :: Iso' ShortByteString ShortByteString
- pattern Hex :: ShortByteString -> ShortByteString
- pattern Base16 :: ShortByteString -> ShortByteString
- pattern Base16Lenient :: ShortByteString -> ShortByteString
Prisms
_Hex :: Prism' ShortByteString ShortByteString Source #
A Prism'
into the Base16 encoding of a lazy ShortByteString
value. This function
is an alias of _Base16
.
>>>
_Hex # "Sun"
"53756e"
>>>
"53756e" ^? _Hex
Just "Sun"
_Base16 :: Prism' ShortByteString ShortByteString Source #
A Prism'
into the Base16 encoding of a ShortByteString
value.
>>>
_Base16 # "Sun"
"53756e"
>>>
"53756e" ^? _Base16
Just "Sun"
Isos
_Base16Lenient :: Iso' ShortByteString ShortByteString Source #
A Iso'
into the Base16 encoding of a leniently decoded ShortByteString
value.
>>>
_Base16Lenient # "Sun"
"53756e"
>>>
"53756e" ^. _Base16
"Sun"
Patterns
pattern Hex :: ShortByteString -> ShortByteString Source #
Bidirectional pattern synonym for Base16-encoded lazy ShortByteString
values.
pattern Base16 :: ShortByteString -> ShortByteString Source #
Bidirectional pattern synonym for Base16-encoded lazy ShortByteString
values.
pattern Base16Lenient :: ShortByteString -> ShortByteString Source #
Bidirectional pattern synonym for Base16-encoded ShortByteString
values.