| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
MSAzureAPI
Synopsis
- tryReq :: Req a -> Req (Either HttpException a)
- data Collection a
- collectionValue :: Collection a -> [a]
- collectionNextLink :: Collection a -> Maybe Text
- data Location
- showLocation :: Location -> Text
HTTP request helpers
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
Common types
data Collection a Source #
a collection of items with key value
NB : results are paginated, and subsequent chunks can be accessed by following the nextLink field
Instances
collectionValue :: Collection a -> [a] Source #
Get the collection items
collectionNextLink :: Collection a -> Maybe Text Source #
Get the next link for a Collection of paginated results
Location
showLocation :: Location -> Text Source #