Copyright | (c) 2019 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 for Base16-encoding and
decoding ByteString
values.
Synopsis
- _Hex :: Prism' ByteString ByteString
- pattern Hex :: ByteString -> ByteString
Prisms
_Hex :: Prism' ByteString ByteString Source #
A Prism'
into the Base16 encoding of a ByteString
value
>>>
_Hex # "Sun"
"53756e"
>>>
"53756e" ^? _Hex
Just "Sun"
Patterns
pattern Hex :: ByteString -> ByteString Source #
Bidirectional pattern synonym for Base16-encoded ByteString
values.