ms-graph-api-0.11.0.0: Microsoft Graph API
Safe HaskellSafe-Inferred
LanguageHaskell2010

MSGraphAPI

Synopsis

Documentation

data Collection a Source #

a collection of items with key value

Constructors

Collection 

Fields

Instances

Instances details
FromJSON a => FromJSON (Collection a) Source # 
Instance details

Defined in MSGraphAPI.Internal.Common

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

Defined in MSGraphAPI.Internal.Common

Generic (Collection a) Source # 
Instance details

Defined in MSGraphAPI.Internal.Common

Associated Types

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

Methods

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

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

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

Defined in MSGraphAPI.Internal.Common

Eq a => Eq (Collection a) Source # 
Instance details

Defined in MSGraphAPI.Internal.Common

Methods

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

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

type Rep (Collection a) Source # 
Instance details

Defined in MSGraphAPI.Internal.Common

type Rep (Collection a) = D1 ('MetaData "Collection" "MSGraphAPI.Internal.Common" "ms-graph-api-0.11.0.0-5uHIC7CmGj38m31PNkaDsF" 'False) (C1 ('MetaCons "Collection" 'PrefixI 'True) (S1 ('MetaSel ('Just "cValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [a]) :*: S1 ('MetaSel ('Just "cNextLink") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))

run :: MonadIO m => HttpConfig -> Req a -> m (Either HttpException a) Source #

Run a Req computation

tryReq :: Req a -> Req (Either HttpException a) Source #

Specialized version of try to HttpExceptions

This can be used to catch exceptions of composite Req statements, e.g. around a do block

withTLS Source #

Arguments

:: MonadIO m 
=> (HttpConfig -> Manager -> m b)

user program

-> m b 

Create a new TLS manager, which should be reused throughout the program