jordan-0.2.0.0: JSON with Structure
Safe HaskellNone
LanguageHaskell2010

Jordan.Types.JSONError

Documentation

data JSONError Source #

Constructors

ErrorMesage Text

Generic, user-provided error message

ErrorInvalidJSON

JSON was not up to spec

ErrorBadType

Bad type encountered (Expected, Actual)

ErrorNoValue

There was no value for this JSON

ErrorBadTextConstant

Text constant was wrong.

Fields

ErrorBadObject JSONObjectError

An object had some bad values.

ErrorBadArray JSONArrayError

An array had some bad indices

ErrorChoice !(Set JSONError)

One of multiple possible errors.

Instances

Instances details
Eq JSONError Source # 
Instance details

Defined in Jordan.Types.JSONError

Ord JSONError Source # 
Instance details

Defined in Jordan.Types.JSONError

Read JSONError Source # 
Instance details

Defined in Jordan.Types.JSONError

Show JSONError Source # 
Instance details

Defined in Jordan.Types.JSONError

Generic JSONError Source # 
Instance details

Defined in Jordan.Types.JSONError

Associated Types

type Rep JSONError :: Type -> Type #

Semigroup JSONError Source # 
Instance details

Defined in Jordan.Types.JSONError

Monoid JSONError Source #

mempty is ErrorNoValue

Instance details

Defined in Jordan.Types.JSONError

NFData JSONError Source # 
Instance details

Defined in Jordan.Types.JSONError

Methods

rnf :: JSONError -> () #

FromJSON JSONError Source # 
Instance details

Defined in Jordan.Types.JSONError

ToJSON JSONError Source # 
Instance details

Defined in Jordan.Types.JSONError

type Rep JSONError Source # 
Instance details

Defined in Jordan.Types.JSONError

newtype JSONObjectError Source #

Instances

Instances details
IsList JSONObjectError Source # 
Instance details

Defined in Jordan.Types.JSONError

Associated Types

type Item JSONObjectError #

Eq JSONObjectError Source # 
Instance details

Defined in Jordan.Types.JSONError

Ord JSONObjectError Source # 
Instance details

Defined in Jordan.Types.JSONError

Read JSONObjectError Source # 
Instance details

Defined in Jordan.Types.JSONError

Show JSONObjectError Source # 
Instance details

Defined in Jordan.Types.JSONError

Generic JSONObjectError Source # 
Instance details

Defined in Jordan.Types.JSONError

Associated Types

type Rep JSONObjectError :: Type -> Type #

Semigroup JSONObjectError Source # 
Instance details

Defined in Jordan.Types.JSONError

Monoid JSONObjectError Source # 
Instance details

Defined in Jordan.Types.JSONError

NFData JSONObjectError Source # 
Instance details

Defined in Jordan.Types.JSONError

Methods

rnf :: JSONObjectError -> () #

FromJSON JSONObjectError Source # 
Instance details

Defined in Jordan.Types.JSONError

ToJSON JSONObjectError Source # 
Instance details

Defined in Jordan.Types.JSONError

type Rep JSONObjectError Source # 
Instance details

Defined in Jordan.Types.JSONError

type Rep JSONObjectError = D1 ('MetaData "JSONObjectError" "Jordan.Types.JSONError" "jordan-0.2.0.0-He2CL9yJm8jJiPwP3VkPys" 'True) (C1 ('MetaCons "MkJSONObjectError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text JSONError))))
type Item JSONObjectError Source # 
Instance details

Defined in Jordan.Types.JSONError

newtype JSONArrayError Source #

Instances

Instances details
IsList JSONArrayError Source # 
Instance details

Defined in Jordan.Types.JSONError

Associated Types

type Item JSONArrayError #

Eq JSONArrayError Source # 
Instance details

Defined in Jordan.Types.JSONError

Ord JSONArrayError Source # 
Instance details

Defined in Jordan.Types.JSONError

Read JSONArrayError Source # 
Instance details

Defined in Jordan.Types.JSONError

Show JSONArrayError Source # 
Instance details

Defined in Jordan.Types.JSONError

Generic JSONArrayError Source # 
Instance details

Defined in Jordan.Types.JSONError

Associated Types

type Rep JSONArrayError :: Type -> Type #

Semigroup JSONArrayError Source # 
Instance details

Defined in Jordan.Types.JSONError

Monoid JSONArrayError Source # 
Instance details

Defined in Jordan.Types.JSONError

NFData JSONArrayError Source # 
Instance details

Defined in Jordan.Types.JSONError

Methods

rnf :: JSONArrayError -> () #

FromJSON JSONArrayError Source # 
Instance details

Defined in Jordan.Types.JSONError

ToJSON JSONArrayError Source # 
Instance details

Defined in Jordan.Types.JSONError

type Rep JSONArrayError Source # 
Instance details

Defined in Jordan.Types.JSONError

type Rep JSONArrayError = D1 ('MetaData "JSONArrayError" "Jordan.Types.JSONError" "jordan-0.2.0.0-He2CL9yJm8jJiPwP3VkPys" 'True) (C1 ('MetaCons "MkJSONArrayError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Integer JSONError))))
type Item JSONArrayError Source # 
Instance details

Defined in Jordan.Types.JSONError