Copyright | (c) 2023 Finley McIlwaine |
---|---|
License | MIT (see LICENSE) |
Maintainer | Finley McIlwaine <finleymcilwaine@gmail.com> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Functions used to implement a command-line utility for interacting with the eBird API.
Synopsis
- eBirdCli :: IO ()
- readEBirdAPIKey :: IO (Maybe Text)
- runEBirdCommand :: IO Text -> EBirdCommand -> IO ()
- printResJSON :: ToJSON a => a -> IO ()
- eBirdFail :: String -> IO a
- data EBirdCommand
- = RecentObservationsCommand RecentObservationsOptions
- | RecentNotableObservationsCommand RecentNotableObservationsOptions
- | RecentSpeciesObservationsCommand RecentSpeciesObservationsOptions
- | RecentNearbyObservationsCommand RecentNearbyObservationsOptions
- | RecentNearbySpeciesObservationsCommand RecentNearbySpeciesObservationsOptions
- | RecentNearestSpeciesObservationsCommand RecentNearestSpeciesObservationsOptions
- | RecentNearbyNotableObservationsCommand RecentNearbyNotableObservationsOptions
- | HistoricalObservationsCommand HistoricalObservationsOptions
- | RecentChecklistsCommand RecentChecklistsOptions
- | Top100Command Top100Options
- | ChecklistFeedCommand ChecklistFeedOptions
- | RegionalStatisticsCommand RegionalStatisticsOptions
- | SpeciesListCommand SpeciesListOptions
- | ViewChecklistCommand ViewChecklistOptions
- | RegionHotspotsCommand RegionHotspotsOptions
- | NearbyHotspotsCommand NearbyHotspotsOptions
- | HotspotInfoCommand HotspotInfoOptions
- | TaxonomyCommand TaxonomyOptions
- | TaxonomicFormsCommand TaxonomicFormsOptions
- | TaxaLocaleCodesCommand TaxaLocaleCodesOptions
- | TaxonomyVersionsCommand
- | TaxonomicGroupsCommand TaxonomicGroupsOptions
- | RegionInfoCommand RegionInfoOptions
- | SubregionListCommand SubregionListOptions
- | AdjacentRegionsCommand AdjacentRegionsOptions
- data RecentObservationsOptions = RecentObservationsOptions {
- recentObservationsRegion :: RegionCode
- recentObservationsBack :: Maybe Integer
- recentObservationsCategories :: Maybe TaxonomyCategories
- recentObservationsHotspots :: Maybe Bool
- recentObservationsProvisionals :: Maybe Bool
- recentObservationsMaxResults :: Maybe Integer
- recentObservationsSubregions :: Maybe RegionCode
- recentObservationsSPPLocale :: Maybe SPPLocale
- data RecentNotableObservationsOptions = RecentNotableObservationsOptions {
- recentNotableObservationsRegion :: RegionCode
- recentNotableObservationsBack :: Maybe Integer
- recentNotableObservationsDetail :: Maybe DetailLevel
- recentNotableObservationsHotspots :: Maybe Bool
- recentNotableObservationsMaxResults :: Maybe Integer
- recentNotableObservationsSubregions :: Maybe RegionCode
- recentNotableObservationsSPPLocale :: Maybe SPPLocale
- data RecentSpeciesObservationsOptions = RecentSpeciesObservationsOptions {
- recentSpeciesObservationsRegion :: RegionCode
- recentSpeciesObservationsSpecies :: SpeciesCode
- recentSpeciesObservationsBack :: Maybe Integer
- recentSpeciesObservationsHotspots :: Maybe Bool
- recentSpeciesObservationsProvisionals :: Maybe Bool
- recentSpeciesObservationsMaxResults :: Maybe Integer
- recentSpeciesObservationsSubregions :: Maybe RegionCode
- recentSpeciesObservationsSPPLocale :: Maybe SPPLocale
- data RecentNearbyObservationsOptions = RecentNearbyObservationsOptions {
- recentNearbyObservationsLatitude :: Double
- recentNearbyObservationsLongitude :: Double
- recentNearbyObservationsDist :: Maybe Integer
- recentNearbyObservationsBack :: Maybe Integer
- recentNearbyObservationsCategories :: Maybe TaxonomyCategories
- recentNearbyObservationsHotspots :: Maybe Bool
- recentNearbyObservationsProvisionals :: Maybe Bool
- recentNearbyObservationsMaxResults :: Maybe Integer
- recentNearbyObservationsSortBy :: Maybe SortObservationsBy
- recentNearbyObservationsSPPLocale :: Maybe SPPLocale
- data RecentNearbySpeciesObservationsOptions = RecentNearbySpeciesObservationsOptions {
- recentNearbySpeciesObservationsSpecies :: SpeciesCode
- recentNearbySpeciesObservationsLatitude :: Double
- recentNearbySpeciesObservationsLongitude :: Double
- recentNearbySpeciesObservationsDist :: Maybe Integer
- recentNearbySpeciesObservationsBack :: Maybe Integer
- recentNearbySpeciesObservationsCategories :: Maybe TaxonomyCategories
- recentNearbySpeciesObservationsHotspots :: Maybe Bool
- recentNearbySpeciesObservationsProvisionals :: Maybe Bool
- recentNearbySpeciesObservationsMaxResults :: Maybe Integer
- recentNearbySpeciesObservationsSortBy :: Maybe SortObservationsBy
- recentNearbySpeciesObservationsSPPLocale :: Maybe SPPLocale
- data RecentNearestSpeciesObservationsOptions = RecentNearestSpeciesObservationsOptions {
- recentNearestSpeciesObservationsSpecies :: SpeciesCode
- recentNearestSpeciesObservationsLatitude :: Double
- recentNearestSpeciesObservationsLongitude :: Double
- recentNearestSpeciesObservationsDist :: Maybe Integer
- recentNearestSpeciesObservationsBack :: Maybe Integer
- recentNearestSpeciesObservationsHotspots :: Maybe Bool
- recentNearestSpeciesObservationsProvisionals :: Maybe Bool
- recentNearestSpeciesObservationsMaxResults :: Maybe Integer
- recentNearestSpeciesObservationsSPPLocale :: Maybe SPPLocale
- data RecentNearbyNotableObservationsOptions = RecentNearbyNotableObservationsOptions {
- recentNearbyNotableObservationsLatitude :: Double
- recentNearbyNotableObservationsLongitude :: Double
- recentNearbyNotableObservationsDist :: Maybe Integer
- recentNearbyNotableObservationsDetail :: Maybe DetailLevel
- recentNearbyNotableObservationsBack :: Maybe Integer
- recentNearbyNotableObservationsHotspots :: Maybe Bool
- recentNearbyNotableObservationsMaxResults :: Maybe Integer
- recentNearbyNotableObservationsSPPLocale :: Maybe SPPLocale
- data HistoricalObservationsOptions = HistoricalObservationsOptions {
- historicalObservationsRegion :: RegionCode
- historicalObservationsDate :: EBirdDate
- historicalObservationsCategories :: Maybe TaxonomyCategories
- historicalObservationsDetail :: Maybe DetailLevel
- historicalObservationsHotspots :: Maybe Bool
- historicalObservationsProvisionals :: Maybe Bool
- historicalObservationsMaxResults :: Maybe Integer
- historicalObservationsRank :: Maybe SelectObservation
- historicalObservationsSubregions :: Maybe RegionCode
- historicalObservationsSPPLocale :: Maybe SPPLocale
- data RecentChecklistsOptions = RecentChecklistsOptions {
- recentChecklistsRegion :: RegionCode
- recentChecklistsMaxResults :: Maybe Integer
- data Top100Options = Top100Options {
- top100Region :: Region
- top100Date :: EBirdDate
- top100RankedBy :: Maybe RankTop100By
- top100MaxResults :: Maybe Integer
- data ChecklistFeedOptions = ChecklistFeedOptions {
- checklistFeedRegion :: Region
- checklistFeedDate :: EBirdDate
- checklistFeedSortBy :: Maybe SortChecklistsBy
- checklistFeedMaxResults :: Maybe Integer
- data RegionalStatisticsOptions = RegionalStatisticsOptions {
- regionalStatisticsRegion :: Region
- regionalStatisticsDate :: EBirdDate
- newtype SpeciesListOptions = SpeciesListOptions {
- speciesListRegion :: Region
- newtype ViewChecklistOptions = ViewChecklistOptions {}
- data RegionHotspotsOptions = RegionHotspotsOptions {
- regionHotspotsRegion :: RegionCode
- regionHotspotsBack :: Maybe Integer
- regionHotspotsFmt :: Maybe CSVOrJSONFormat
- data NearbyHotspotsOptions = NearbyHotspotsOptions {
- nearbyHotspotsLatitude :: Double
- nearbyHotspotsLongitude :: Double
- nearbyHotspotsBack :: Maybe Integer
- nearbyHotspotsDist :: Maybe Integer
- nearbyHotspotsFmt :: Maybe CSVOrJSONFormat
- newtype HotspotInfoOptions = HotspotInfoOptions {}
- data TaxonomyOptions = TaxonomyOptions {
- taxonomyTaxonomyCategories :: Maybe TaxonomyCategories
- taxonomyFormat :: Maybe CSVOrJSONFormat
- taxonomySPPLocale :: Maybe SPPLocale
- taxonomySpecies :: Maybe SpeciesCodes
- taxonomyVersion :: Maybe Text
- newtype TaxonomicFormsOptions = TaxonomicFormsOptions {
- taxonomicFormsSpecies :: SpeciesCode
- newtype TaxaLocaleCodesOptions = TaxaLocaleCodesOptions {
- taxaLocaleCodesAcceptLanguage :: Maybe SPPLocale
- data TaxonomicGroupsOptions = TaxonomicGroupsOptions {
- taxonomicGroupsSPPGrouping :: SPPGrouping
- taxonomicGroupsSPPLocale :: Maybe SPPLocale
- data RegionInfoOptions = RegionInfoOptions {
- regionInfoRegion :: Region
- regionInfoRegionNameFormat :: Maybe RegionNameFormat
- data SubregionListOptions = SubregionListOptions {
- subregionListParentRegionCode :: RegionCode
- subregionListRegionType :: RegionType
- newtype AdjacentRegionsOptions = AdjacentRegionsOptions {
- adjacentRegionsRegion :: Region
- eBirdCommand :: Parser (Maybe Text, EBirdCommand)
- recentObservationsOptions :: Parser RecentObservationsOptions
- recentNotableObservationsOptions :: Parser RecentNotableObservationsOptions
- recentSpeciesObservationsOptions :: Parser RecentSpeciesObservationsOptions
- recentNearbyObservationsOptions :: Parser RecentNearbyObservationsOptions
- recentNearbySpeciesObservationsOptions :: Parser RecentNearbySpeciesObservationsOptions
- recentNearestSpeciesObservationsOptions :: Parser RecentNearestSpeciesObservationsOptions
- recentNearbyNotableObservationsOptions :: Parser RecentNearbyNotableObservationsOptions
- historicalObservationsOptions :: Parser HistoricalObservationsOptions
- observationOnlyHotspotsOpt :: Parser Bool
- observationIncludeProvisionalOpt :: Parser Bool
- observationMaxResultsOpt :: Parser Integer
- regionCodeOpt :: String -> Parser RegionCode
- taxonomyCategoriesOpt :: String -> Parser TaxonomyCategories
- observationSortByOpt :: Parser SortObservationsBy
- observationDetailLevelOpt :: Parser DetailLevel
- extraRegionsOpt :: Parser RegionCode
- recentChecklistsOptions :: Parser RecentChecklistsOptions
- top100Options :: Parser Top100Options
- checklistFeedOptions :: Parser ChecklistFeedOptions
- regionalStatisticsOptions :: Parser RegionalStatisticsOptions
- speciesListOptions :: Parser SpeciesListOptions
- viewChecklistOptions :: Parser ViewChecklistOptions
- checklistRegionCodeOpt :: Parser RegionCode
- checklistMaxResultsOpt :: Parser Integer
- regionHotspotsOptions :: Parser RegionHotspotsOptions
- nearbyHotspotsOptions :: Parser NearbyHotspotsOptions
- hotspotInfoOptions :: Parser HotspotInfoOptions
- taxonomyOptions :: Parser TaxonomyOptions
- taxonomicFormsOptions :: Parser TaxonomicFormsOptions
- taxaLocaleCodesOptions :: Parser TaxaLocaleCodesOptions
- taxonomicGroupsOptions :: Parser TaxonomicGroupsOptions
- regionInfoOptions :: Parser RegionInfoOptions
- subregionListOptions :: Parser SubregionListOptions
- adjacentRegionsOptions :: Parser AdjacentRegionsOptions
- sppLocaleOpt :: String -> Parser SPPLocale
- region :: Parser Region
- regionCode :: Parser RegionCode
- regionNameFormat :: Parser RegionNameFormat
- regionType :: Parser RegionType
- speciesCodeOpt :: String -> Parser SpeciesCode
- searchRadiusOpt :: String -> Integer -> Maybe Integer -> Parser Integer
- backOpt :: String -> String -> Maybe Integer -> Parser Integer
- latLngOpt :: String -> String -> Parser Double
- attoReadM :: Parser a -> ReadM a
Documentation
Entry point for the ebird
CLI. Parses the command arguments, selects an
API key, and executes the command.
The API key may be provided as a command-line option. If the key option is
not provided, it is read from the file ~/.ebird/key.txt
. If that file is
unavailable for reading, and no key option is provided, the application
exits (if the command requires a key).
:: IO Text | Get an API key (this may fail if not found or provided) |
-> EBirdCommand | Command to execute |
-> IO () |
Run an EBirdCommand
with a given API key.
printResJSON :: ToJSON a => a -> IO () Source #
Simply prints a value as prettified JSON
eBirdFail :: String -> IO a Source #
Print a string to stderr, prepended with a context string, and exit with failure status.
data EBirdCommand Source #
Each EBirdCommand
corresponds to an endpoint of the eBird API
Instances
Show EBirdCommand Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> EBirdCommand -> ShowS # show :: EBirdCommand -> String # showList :: [EBirdCommand] -> ShowS # | |
Eq EBirdCommand Source # | |
Defined in Data.EBird.CLI (==) :: EBirdCommand -> EBirdCommand -> Bool # (/=) :: EBirdCommand -> EBirdCommand -> Bool # |
data RecentObservationsOptions Source #
Options for the recent-observations
command.
RecentObservationsOptions | |
|
Instances
Read RecentObservationsOptions Source # | |
Show RecentObservationsOptions Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> RecentObservationsOptions -> ShowS # show :: RecentObservationsOptions -> String # showList :: [RecentObservationsOptions] -> ShowS # | |
Eq RecentObservationsOptions Source # | |
Defined in Data.EBird.CLI |
data RecentNotableObservationsOptions Source #
Options for the recent-notable-observations
command.
RecentNotableObservationsOptions | |
|
data RecentSpeciesObservationsOptions Source #
Options for the recent-species-observations
command.
data RecentNearbyObservationsOptions Source #
Options for the recent-nearby-observations
command.
data RecentNearbySpeciesObservationsOptions Source #
Options for the recent-nearby-species-observations
command.
data RecentNearestSpeciesObservationsOptions Source #
Options for the recent-nearest-species-observations
command.
data RecentNearbyNotableObservationsOptions Source #
Options for the recent-nearby-notable-observations
command.
data HistoricalObservationsOptions Source #
Options for the historical-observations
command.
HistoricalObservationsOptions | |
|
Instances
Read HistoricalObservationsOptions Source # | |
Show HistoricalObservationsOptions Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> HistoricalObservationsOptions -> ShowS # show :: HistoricalObservationsOptions -> String # showList :: [HistoricalObservationsOptions] -> ShowS # | |
Eq HistoricalObservationsOptions Source # | |
Defined in Data.EBird.CLI |
data RecentChecklistsOptions Source #
Options for the recent-checklists
command.
RecentChecklistsOptions | |
|
Instances
Read RecentChecklistsOptions Source # | |
Defined in Data.EBird.CLI | |
Show RecentChecklistsOptions Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> RecentChecklistsOptions -> ShowS # show :: RecentChecklistsOptions -> String # showList :: [RecentChecklistsOptions] -> ShowS # | |
Eq RecentChecklistsOptions Source # | |
Defined in Data.EBird.CLI |
data Top100Options Source #
Options for the top-100
command.
Top100Options | |
|
Instances
Read Top100Options Source # | |
Defined in Data.EBird.CLI readsPrec :: Int -> ReadS Top100Options # readList :: ReadS [Top100Options] # | |
Show Top100Options Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> Top100Options -> ShowS # show :: Top100Options -> String # showList :: [Top100Options] -> ShowS # | |
Eq Top100Options Source # | |
Defined in Data.EBird.CLI (==) :: Top100Options -> Top100Options -> Bool # (/=) :: Top100Options -> Top100Options -> Bool # |
data ChecklistFeedOptions Source #
Options for the checklist-feed
command.
ChecklistFeedOptions | |
|
Instances
Read ChecklistFeedOptions Source # | |
Defined in Data.EBird.CLI | |
Show ChecklistFeedOptions Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> ChecklistFeedOptions -> ShowS # show :: ChecklistFeedOptions -> String # showList :: [ChecklistFeedOptions] -> ShowS # | |
Eq ChecklistFeedOptions Source # | |
Defined in Data.EBird.CLI (==) :: ChecklistFeedOptions -> ChecklistFeedOptions -> Bool # (/=) :: ChecklistFeedOptions -> ChecklistFeedOptions -> Bool # |
data RegionalStatisticsOptions Source #
Options for the regional-statistics
command.
RegionalStatisticsOptions | |
|
Instances
Read RegionalStatisticsOptions Source # | |
Show RegionalStatisticsOptions Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> RegionalStatisticsOptions -> ShowS # show :: RegionalStatisticsOptions -> String # showList :: [RegionalStatisticsOptions] -> ShowS # | |
Eq RegionalStatisticsOptions Source # | |
Defined in Data.EBird.CLI |
newtype SpeciesListOptions Source #
Options for the species-list
command.
SpeciesListOptions | |
|
Instances
Read SpeciesListOptions Source # | |
Defined in Data.EBird.CLI | |
Show SpeciesListOptions Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> SpeciesListOptions -> ShowS # show :: SpeciesListOptions -> String # showList :: [SpeciesListOptions] -> ShowS # | |
Eq SpeciesListOptions Source # | |
Defined in Data.EBird.CLI (==) :: SpeciesListOptions -> SpeciesListOptions -> Bool # (/=) :: SpeciesListOptions -> SpeciesListOptions -> Bool # |
newtype ViewChecklistOptions Source #
Options for the view-checklist
command.
Instances
Read ViewChecklistOptions Source # | |
Defined in Data.EBird.CLI | |
Show ViewChecklistOptions Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> ViewChecklistOptions -> ShowS # show :: ViewChecklistOptions -> String # showList :: [ViewChecklistOptions] -> ShowS # | |
Eq ViewChecklistOptions Source # | |
Defined in Data.EBird.CLI (==) :: ViewChecklistOptions -> ViewChecklistOptions -> Bool # (/=) :: ViewChecklistOptions -> ViewChecklistOptions -> Bool # |
data RegionHotspotsOptions Source #
Options for the region-hotspots
command.
RegionHotspotsOptions | |
|
Instances
Read RegionHotspotsOptions Source # | |
Defined in Data.EBird.CLI | |
Show RegionHotspotsOptions Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> RegionHotspotsOptions -> ShowS # show :: RegionHotspotsOptions -> String # showList :: [RegionHotspotsOptions] -> ShowS # | |
Eq RegionHotspotsOptions Source # | |
Defined in Data.EBird.CLI (==) :: RegionHotspotsOptions -> RegionHotspotsOptions -> Bool # (/=) :: RegionHotspotsOptions -> RegionHotspotsOptions -> Bool # |
data NearbyHotspotsOptions Source #
Options for the nearby-hotspots
command.
NearbyHotspotsOptions | |
|
Instances
Read NearbyHotspotsOptions Source # | |
Defined in Data.EBird.CLI | |
Show NearbyHotspotsOptions Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> NearbyHotspotsOptions -> ShowS # show :: NearbyHotspotsOptions -> String # showList :: [NearbyHotspotsOptions] -> ShowS # | |
Eq NearbyHotspotsOptions Source # | |
Defined in Data.EBird.CLI (==) :: NearbyHotspotsOptions -> NearbyHotspotsOptions -> Bool # (/=) :: NearbyHotspotsOptions -> NearbyHotspotsOptions -> Bool # |
newtype HotspotInfoOptions Source #
Options for the hotspot-info
command.
Instances
Read HotspotInfoOptions Source # | |
Defined in Data.EBird.CLI | |
Show HotspotInfoOptions Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> HotspotInfoOptions -> ShowS # show :: HotspotInfoOptions -> String # showList :: [HotspotInfoOptions] -> ShowS # | |
Eq HotspotInfoOptions Source # | |
Defined in Data.EBird.CLI (==) :: HotspotInfoOptions -> HotspotInfoOptions -> Bool # (/=) :: HotspotInfoOptions -> HotspotInfoOptions -> Bool # |
data TaxonomyOptions Source #
Options for the nearby-hotspots
command.
TaxonomyOptions | |
|
Instances
Read TaxonomyOptions Source # | |
Defined in Data.EBird.CLI | |
Show TaxonomyOptions Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> TaxonomyOptions -> ShowS # show :: TaxonomyOptions -> String # showList :: [TaxonomyOptions] -> ShowS # | |
Eq TaxonomyOptions Source # | |
Defined in Data.EBird.CLI (==) :: TaxonomyOptions -> TaxonomyOptions -> Bool # (/=) :: TaxonomyOptions -> TaxonomyOptions -> Bool # |
newtype TaxonomicFormsOptions Source #
Options for the taxonomic-forms
command.
TaxonomicFormsOptions | |
|
Instances
Read TaxonomicFormsOptions Source # | |
Defined in Data.EBird.CLI | |
Show TaxonomicFormsOptions Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> TaxonomicFormsOptions -> ShowS # show :: TaxonomicFormsOptions -> String # showList :: [TaxonomicFormsOptions] -> ShowS # | |
Eq TaxonomicFormsOptions Source # | |
Defined in Data.EBird.CLI (==) :: TaxonomicFormsOptions -> TaxonomicFormsOptions -> Bool # (/=) :: TaxonomicFormsOptions -> TaxonomicFormsOptions -> Bool # |
newtype TaxaLocaleCodesOptions Source #
Options for the taxa-locale-codes
command.
TaxaLocaleCodesOptions | |
|
Instances
Read TaxaLocaleCodesOptions Source # | |
Defined in Data.EBird.CLI | |
Show TaxaLocaleCodesOptions Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> TaxaLocaleCodesOptions -> ShowS # show :: TaxaLocaleCodesOptions -> String # showList :: [TaxaLocaleCodesOptions] -> ShowS # | |
Eq TaxaLocaleCodesOptions Source # | |
Defined in Data.EBird.CLI |
data TaxonomicGroupsOptions Source #
Options for the taxonomic-groups
command.
TaxonomicGroupsOptions | |
|
Instances
Read TaxonomicGroupsOptions Source # | |
Defined in Data.EBird.CLI | |
Show TaxonomicGroupsOptions Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> TaxonomicGroupsOptions -> ShowS # show :: TaxonomicGroupsOptions -> String # showList :: [TaxonomicGroupsOptions] -> ShowS # | |
Eq TaxonomicGroupsOptions Source # | |
Defined in Data.EBird.CLI |
data RegionInfoOptions Source #
Options for the region-info
command.
RegionInfoOptions | |
|
Instances
Read RegionInfoOptions Source # | |
Defined in Data.EBird.CLI | |
Show RegionInfoOptions Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> RegionInfoOptions -> ShowS # show :: RegionInfoOptions -> String # showList :: [RegionInfoOptions] -> ShowS # | |
Eq RegionInfoOptions Source # | |
Defined in Data.EBird.CLI (==) :: RegionInfoOptions -> RegionInfoOptions -> Bool # (/=) :: RegionInfoOptions -> RegionInfoOptions -> Bool # |
data SubregionListOptions Source #
Options for the subregions
command.
SubregionListOptions | |
|
Instances
Read SubregionListOptions Source # | |
Defined in Data.EBird.CLI | |
Show SubregionListOptions Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> SubregionListOptions -> ShowS # show :: SubregionListOptions -> String # showList :: [SubregionListOptions] -> ShowS # | |
Eq SubregionListOptions Source # | |
Defined in Data.EBird.CLI (==) :: SubregionListOptions -> SubregionListOptions -> Bool # (/=) :: SubregionListOptions -> SubregionListOptions -> Bool # |
newtype AdjacentRegionsOptions Source #
Options for the subregions
command.
AdjacentRegionsOptions | |
|
Instances
Read AdjacentRegionsOptions Source # | |
Defined in Data.EBird.CLI | |
Show AdjacentRegionsOptions Source # | |
Defined in Data.EBird.CLI showsPrec :: Int -> AdjacentRegionsOptions -> ShowS # show :: AdjacentRegionsOptions -> String # showList :: [AdjacentRegionsOptions] -> ShowS # | |
Eq AdjacentRegionsOptions Source # | |
Defined in Data.EBird.CLI |
eBirdCommand :: Parser (Maybe Text, EBirdCommand) Source #
Parse a command provided to the ebird
CLI.
recentObservationsOptions :: Parser RecentObservationsOptions Source #
Parse the options for the recent-observations
command.
recentNotableObservationsOptions :: Parser RecentNotableObservationsOptions Source #
Parse the options for a recent-notable-observations
command.
recentSpeciesObservationsOptions :: Parser RecentSpeciesObservationsOptions Source #
Parse the options for a recent-species-observations
command.
recentNearbyObservationsOptions :: Parser RecentNearbyObservationsOptions Source #
Parse the options for a recent-nearby-observations
command.
recentNearbySpeciesObservationsOptions :: Parser RecentNearbySpeciesObservationsOptions Source #
Parse the options for a recent-nearby-species-observations
command.
recentNearestSpeciesObservationsOptions :: Parser RecentNearestSpeciesObservationsOptions Source #
Parse the options for a recent-nearest-species-observations
command.
recentNearbyNotableObservationsOptions :: Parser RecentNearbyNotableObservationsOptions Source #
Parse the options for a recent-nearest-species-observations
command.
historicalObservationsOptions :: Parser HistoricalObservationsOptions Source #
Parse the options for a historical-observations
command.
observationOnlyHotspotsOpt :: Parser Bool Source #
Parse a Bool
, intended to be used as an option determining whether to
include observations from hotspots in the response.
observationIncludeProvisionalOpt :: Parser Bool Source #
Parse a Bool
, intended to be used as an option determining whether to
include unreviewed observations in the response.
observationMaxResultsOpt :: Parser Integer Source #
Parse a Integer
option indicating the number of results to include in the
response.
Parse a RegionCode
as a generic command option, intended for use with the
observation commands.
taxonomyCategoriesOpt Source #
:: String | String to include after "one or more taxonomy categories to include ..." |
-> Parser TaxonomyCategories |
Configurable TaxonomyCategories
parser
observationSortByOpt :: Parser SortObservationsBy Source #
Parse a SortObservationsBy
as an option determining how returned
observations will be sorted.
observationDetailLevelOpt :: Parser DetailLevel Source #
Parse a DetailLevel
as an option determining the detail level of
observations in the result.
extraRegionsOpt :: Parser RegionCode Source #
Parse a RegionCode
as extra regions to fetch observations from
recentChecklistsOptions :: Parser RecentChecklistsOptions Source #
Parse the options for a recent-checklists
command.
top100Options :: Parser Top100Options Source #
Parse the options for a top-100
command.
checklistFeedOptions :: Parser ChecklistFeedOptions Source #
Parse the options for a top-100
command.
regionalStatisticsOptions :: Parser RegionalStatisticsOptions Source #
Parse the options for a regional-statistics
command.
speciesListOptions :: Parser SpeciesListOptions Source #
Parse the options for a regional-statistics
command.
viewChecklistOptions :: Parser ViewChecklistOptions Source #
Parse the options for a regional-statistics
command.
checklistRegionCodeOpt :: Parser RegionCode Source #
Parse a RegionCode
as a generic command option, intended for use with the
checklists commands.
checklistMaxResultsOpt :: Parser Integer Source #
Parse a Integer
as a generic command option, intended for use with the
checklists commands for determining max results to include.
regionHotspotsOptions :: Parser RegionHotspotsOptions Source #
Parse the options for a region-hotspots
command.
nearbyHotspotsOptions :: Parser NearbyHotspotsOptions Source #
Parse the options for a nearby-hotspots
command.
hotspotInfoOptions :: Parser HotspotInfoOptions Source #
Parse the options for a hotspot-info
command.
taxonomyOptions :: Parser TaxonomyOptions Source #
Parse the options for a nearby-hotspots
command.
taxonomicFormsOptions :: Parser TaxonomicFormsOptions Source #
Parse the options for a taxonomic-forms
command.
taxaLocaleCodesOptions :: Parser TaxaLocaleCodesOptions Source #
Parse the options for a taxa-locale-codes
command.
taxonomicGroupsOptions :: Parser TaxonomicGroupsOptions Source #
Parse the options for a taxa-locale-codes
command.
regionInfoOptions :: Parser RegionInfoOptions Source #
Parse the options for the region-info
command.
subregionListOptions :: Parser SubregionListOptions Source #
Parse the options for the subregions
command.
adjacentRegionsOptions :: Parser AdjacentRegionsOptions Source #
Parse the options for the subregions
command.
sppLocaleOpt :: String -> Parser SPPLocale Source #
Parse a SPPLocale
as a generic command option.
regionCode :: Parser RegionCode Source #
Parse a RegionCode
as a generic command option.
regionNameFormat :: Parser RegionNameFormat Source #
Parse a RegionNameFormat
as a generic command option.
regionType :: Parser RegionType Source #
Parse a RegionType
as a generic command option.
speciesCodeOpt :: String -> Parser SpeciesCode Source #
Configurable SpeciesCode
option
:: String | What are we searching for (e.g. "observations") |
-> Integer | Maximum allowed value by the API |
-> Maybe Integer | Default value of the API ( |
-> Parser Integer |
Configurable "search radius" option
:: String | What are we fetching (e.g. "hotspots") |
-> String | Verb we are filtering on (e.g. "submitted", or "visited") |
-> Maybe Integer | Default value ( |
-> Parser Integer |
Configurable "back" option
Configurable lat/lng option