base16-lens-0.1.1.0: Optics for the Base16 library
Copyright(c) 2020 Emily Pillmore
LicenseBSD-style
MaintainerEmily Pillmore <emilypi@cohomolo.gy>
StabilityExperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Data.Text.Encoding.Base16.Lens

Description

This module contains Prisms Base16-encoding and decoding Text values.

Synopsis

Prisms

_Hex :: Prism' Text Text Source #

A Prism' into the Base16 encoding of a Text value. This is an alias for _Base16.

>>> _Hex # "Sun"
"53756e"
>>> "53756e" ^? _Hex
Just "Sun"

_Base16 :: Prism' Text Text Source #

A Prism' into the Base16 encoding of a Text value

>>> _Base16 # "Sun"
"53756e"
>>> "53756e" ^? _Base16
Just "Sun"

Patterns

pattern Hex :: Text -> Text Source #

Bidirectional pattern synonym for Base16-encoded Text values.

pattern Base16 :: Text -> Text Source #

Bidirectional pattern synonym for Base16-encoded Text values.