ziptastic-core-0.2.0.1: Core Servant specification for the Ziptastic API for doing forward and reverse geocoding.

Safe HaskellNone
LanguageHaskell2010

Ziptastic.Core

Description

This module provides a complete and type-safe API specification for Ziptastic's forward and reverse geocoding API using Servant (https://www.getziptastic.com/).

To use this specification in your application, try the ziptastic-client package.

Synopsis

Documentation

type Api = "v3" :> (Header "x-key" ApiKey :> ApiEndpoints) Source #

newtype ApiKey Source #

Constructors

ApiKey 

Fields

Instances

Eq ApiKey Source # 

Methods

(==) :: ApiKey -> ApiKey -> Bool #

(/=) :: ApiKey -> ApiKey -> Bool #

Show ApiKey Source # 
IsString ApiKey Source # 

Methods

fromString :: String -> ApiKey #

Generic ApiKey Source # 

Associated Types

type Rep ApiKey :: * -> * #

Methods

from :: ApiKey -> Rep ApiKey x #

to :: Rep ApiKey x -> ApiKey #

ToHttpApiData ApiKey Source # 
type Rep ApiKey Source # 
type Rep ApiKey = D1 (MetaData "ApiKey" "Ziptastic.Core" "ziptastic-core-0.2.0.1-uTSzfdGQhR97oRWrUTSCj" True) (C1 (MetaCons "ApiKey" PrefixI True) (S1 (MetaSel (Just Symbol "getApiKey") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

newtype ForApi a Source #

A generic wrapper for giving external data types instances for our uses.

Constructors

ForApi a 

data LocaleInfo Source #

Constructors

LocaleInfo 

Fields

Instances

Eq LocaleInfo Source # 
Show LocaleInfo Source # 
Generic LocaleInfo Source # 

Associated Types

type Rep LocaleInfo :: * -> * #

FromJSON LocaleInfo Source # 
type Rep LocaleInfo Source #