| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
MSAzureAPI
Synopsis
- tryReq :: Req a -> Req (Either HttpException a)
- run :: MonadIO m => HttpConfig -> Req a -> m (Either HttpException a)
- withTLS :: MonadIO m => (HttpConfig -> Manager -> m b) -> m b
- data Collection a
- collectionValue :: Collection a -> [a]
- collectionNextLink :: Collection a -> Maybe Text
- data Location
- showLocation :: Location -> Text
- locationDisplayName :: 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
run :: MonadIO m => HttpConfig -> Req a -> m (Either HttpException a) Source #
Run a Req computation
Arguments
| :: MonadIO m | |
| => (HttpConfig -> Manager -> m b) | user program |
| -> m b |
Create a new TLS manager, which should be reused throughout the program
Common types
Collection
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
Azure regions
showLocation :: Location -> Text Source #
Displays the short name, e.g. "westeu"
locationDisplayName :: Location -> Text Source #
Displays the full name, e.g. "West Europe"