base16-0.2.0.0: RFC 4648-compliant Base16 encodings/decodings
Copyright(c) 2019 Emily Pillmore
LicenseBSD-style
MaintainerEmily Pillmore <emilypi@cohomolo.gy>
StabilityExperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Data.Text.Encoding.Base16.Error

Description

This module contains the error types raised (not as exceptions!) in the decoding process.

Synopsis

Documentation

data Base16Error e Source #

This data type represents the type of decoding errors of various kinds as they pertain to decoding Text values. Namely, to distinguish between decoding errors from opaque unicode exceptions caught in the unicode decoding process.

Constructors

DecodeError Text

The error associated with decoding failure as a result of the Base16 decoding process

ConversionError e

The error associated with the decoding failure as a result of the conversion process `ByteString -> Text`

Instances

Instances details
Eq e => Eq (Base16Error e) Source # 
Instance details

Defined in Data.Text.Encoding.Base16.Error

Show e => Show (Base16Error e) Source # 
Instance details

Defined in Data.Text.Encoding.Base16.Error