hscim-0.3.6: hscim json schema and server implementation
Safe HaskellNone
LanguageHaskell2010

Web.Scim.Schema.Common

Synopsis

Documentation

data WithId id a Source #

Constructors

WithId 

Fields

Instances

Instances details
(Eq id, Eq a) => Eq (WithId id a) Source # 
Instance details

Defined in Web.Scim.Schema.Common

Methods

(==) :: WithId id a -> WithId id a -> Bool #

(/=) :: WithId id a -> WithId id a -> Bool #

(Show id, Show a) => Show (WithId id a) Source # 
Instance details

Defined in Web.Scim.Schema.Common

Methods

showsPrec :: Int -> WithId id a -> ShowS #

show :: WithId id a -> String #

showList :: [WithId id a] -> ShowS #

(ToJSON id, ToJSON a) => ToJSON (WithId id a) Source # 
Instance details

Defined in Web.Scim.Schema.Common

Methods

toJSON :: WithId id a -> Value #

toEncoding :: WithId id a -> Encoding #

toJSONList :: [WithId id a] -> Value #

toEncodingList :: [WithId id a] -> Encoding #

(FromJSON id, FromJSON a) => FromJSON (WithId id a) Source # 
Instance details

Defined in Web.Scim.Schema.Common

Methods

parseJSON :: Value -> Parser (WithId id a) #

parseJSONList :: Value -> Parser [WithId id a] #

newtype URI Source #

Constructors

URI 

Fields

Instances

Instances details
Eq URI Source # 
Instance details

Defined in Web.Scim.Schema.Common

Methods

(==) :: URI -> URI -> Bool #

(/=) :: URI -> URI -> Bool #

Show URI Source # 
Instance details

Defined in Web.Scim.Schema.Common

Methods

showsPrec :: Int -> URI -> ShowS #

show :: URI -> String #

showList :: [URI] -> ShowS #

ToJSON URI Source # 
Instance details

Defined in Web.Scim.Schema.Common

FromJSON URI Source # 
Instance details

Defined in Web.Scim.Schema.Common

newtype ScimBool Source #

Constructors

ScimBool 

Fields

jsonLower :: Value -> Value Source #

Turn all keys in a JSON object to lowercase recursively. This is applied to the aeson Value to be parsed; parseOptions is applied to the keys passed to (.:) etc.

(FUTUREWORK: The "recursively" part is a bit of a waste and could be dropped, but we would have to spend more effort in making sure it is always called manually in nested parsers.)