Safe Haskell | None |
---|---|
Language | Haskell2010 |
The Region API.
This module should be imported qualified, to prevent name clashes:
import NationStates import qualified NationStates.Region as Region
In general, this module follows the terminology used in the official documentation.
Here's a short example:
import NationStates import qualified NationStates.Region as Region import Text.Printf main = do c <-newContext
"ExampleBot/2000" (name, numnations, delegate) <- Region.run
"Pony Lands" ((,,) <$> Region.name
<*> Region.numnations
<*> Region.delegate
) c printf "%s has %d nations. Its delegate is %s\n" name numnations delegate
Running queries
A request to the Region API.
Perform a request to the Region API.
Shards
factbook :: Region String Source
Factbook, in BBCode format.
"[b]We've got ponies, therefore your argument is invalid..."
numnations :: Region Integer Source
Number of nations in the region.
112