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