nationstates-0.1.0.2: NationStates API client

Safe HaskellNone
LanguageHaskell2010

NationStates

Contents

Synopsis

Documentation

data Context Source

Keeps track of rate limits and TLS connections.

You should create a single Context at the start of your program, then share it between multiple threads and requests.

withContext Source

Arguments

:: String

User agent

-> (Context -> IO a) 
-> IO a 

Create a Context, and pass it to the provided function.

The Context will be closed automatically when the function returns.

Core types