base16-lens-0.1.0.0: Optics for the Base16 library

Copyright(c) 2019 Emily Pillmore
LicenseBSD-style
MaintainerEmily Pillmore <emilypi@cohomolo.gy>
StabilityExperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Data.ByteString.Base16.Lens

Contents

Description

This module contains Prism's for Base16-encoding and decoding ByteString values.

Synopsis

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.