jordan-servant-0.1.0.0: Servant Combinators for Jordan
Safe HaskellNone
LanguageHaskell2010

Jordan.Servant.Response

Description

Helpers for rendering responses via Jordan.

Synopsis

Documentation

newtype ViaJordan a Source #

Wrapper to perform JSON serialization via Jordan.

Types used with this wrapper should have isomorphic ToJSON and FromJSON instances. A utility is provided to check this.

Constructors

ViaJordan 

Fields

Instances

Instances details
Eq a => Eq (ViaJordan a) Source # 
Instance details

Defined in Jordan.Servant.Response

Methods

(==) :: ViaJordan a -> ViaJordan a -> Bool #

(/=) :: ViaJordan a -> ViaJordan a -> Bool #

Ord a => Ord (ViaJordan a) Source # 
Instance details

Defined in Jordan.Servant.Response

Read a => Read (ViaJordan a) Source # 
Instance details

Defined in Jordan.Servant.Response

Show a => Show (ViaJordan a) Source # 
Instance details

Defined in Jordan.Servant.Response

Generic (ViaJordan a) Source # 
Instance details

Defined in Jordan.Servant.Response

Associated Types

type Rep (ViaJordan a) :: Type -> Type #

Methods

from :: ViaJordan a -> Rep (ViaJordan a) x #

to :: Rep (ViaJordan a) x -> ViaJordan a #

ToJSON a => ToJSON (ViaJordan a) Source # 
Instance details

Defined in Jordan.Servant.Response

Methods

toJSON :: JSONSerializer f => f (ViaJordan a) #

FromJSON a => FromJSON (ViaJordan a) Source # 
Instance details

Defined in Jordan.Servant.Response

Methods

fromJSON :: JSONParser f => f (ViaJordan a) #

HasStatus a => HasStatus (ViaJordan a) Source # 
Instance details

Defined in Jordan.Servant.Response

Associated Types

type StatusOf (ViaJordan a) :: Nat #

ToJSON a => MimeRender JSON (ViaJordan a) Source #

Overlapping instance: sidestep Aeson, use Jordan.

Instance details

Defined in Jordan.Servant.Response

FromJSON a => MimeUnrender JSON (ViaJordan a) Source #

Overlapping instance: sidestep Aeson, just Jordan.

Instance details

Defined in Jordan.Servant.Response

type Rep (ViaJordan a) Source # 
Instance details

Defined in Jordan.Servant.Response

type Rep (ViaJordan a) = D1 ('MetaData "ViaJordan" "Jordan.Servant.Response" "jordan-servant-0.1.0.0-4pWi47ZOJ6bHDVnhgja79c" 'True) (C1 ('MetaCons "ViaJordan" 'PrefixI 'True) (S1 ('MetaSel ('Just "getViaJordan") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)))
type StatusOf (ViaJordan a) Source # 
Instance details

Defined in Jordan.Servant.Response