base16-0.3.0.0: Fast RFC 4648-compliant Base16 encoding

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 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

Instances
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

Generic (Base16Error e) Source # 
Instance details

Defined in Data.Text.Encoding.Base16.Error

Associated Types

type Rep (Base16Error e) :: Type -> Type #

Methods

from :: Base16Error e -> Rep (Base16Error e) x #

to :: Rep (Base16Error e) x -> Base16Error e #

Exception e => Exception (Base16Error e) Source #

Since: 0.3.0.0

Instance details

Defined in Data.Text.Encoding.Base16.Error

NFData e => NFData (Base16Error e) Source #

Since: 0.3.0.0

Instance details

Defined in Data.Text.Encoding.Base16.Error

Methods

rnf :: Base16Error e -> () #

type Rep (Base16Error e) Source #

Since: 0.3.0.0

Instance details

Defined in Data.Text.Encoding.Base16.Error

type Rep (Base16Error e) = D1 (MetaData "Base16Error" "Data.Text.Encoding.Base16.Error" "base16-0.3.0.0-F0XzygBpzCk1lkDwmnoMNZ" False) (C1 (MetaCons "DecodeError" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) :+: C1 (MetaCons "ConversionError" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 e)))