hscim-0.3.5: 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

toKeyword :: (IsString p, Eq p) => p -> p Source #

jsonLower :: Value -> Value Source #

Turn all keys in a JSON object to lowercase.

fromKeyword :: (IsString p, Eq p) => p -> p Source #