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