{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE Safe #-}
module Data.Text.Encoding.Base16.Error
( Base16Error(..)
) where
import Control.DeepSeq (NFData(..))
import Control.Exception (Exception(..))
import Data.Text (Text)
import GHC.Generics
data Base16Error e
= DecodeError Text
| ConversionError e
deriving
( Base16Error e -> Base16Error e -> Bool
(Base16Error e -> Base16Error e -> Bool)
-> (Base16Error e -> Base16Error e -> Bool) -> Eq (Base16Error e)
forall e. Eq e => Base16Error e -> Base16Error e -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Base16Error e -> Base16Error e -> Bool
$c/= :: forall e. Eq e => Base16Error e -> Base16Error e -> Bool
== :: Base16Error e -> Base16Error e -> Bool
$c== :: forall e. Eq e => Base16Error e -> Base16Error e -> Bool
Eq, Int -> Base16Error e -> ShowS
[Base16Error e] -> ShowS
Base16Error e -> String
(Int -> Base16Error e -> ShowS)
-> (Base16Error e -> String)
-> ([Base16Error e] -> ShowS)
-> Show (Base16Error e)
forall e. Show e => Int -> Base16Error e -> ShowS
forall e. Show e => [Base16Error e] -> ShowS
forall e. Show e => Base16Error e -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Base16Error e] -> ShowS
$cshowList :: forall e. Show e => [Base16Error e] -> ShowS
show :: Base16Error e -> String
$cshow :: forall e. Show e => Base16Error e -> String
showsPrec :: Int -> Base16Error e -> ShowS
$cshowsPrec :: forall e. Show e => Int -> Base16Error e -> ShowS
Show
, Generic
)
instance Exception e => Exception (Base16Error e)
instance NFData e => NFData (Base16Error e)