ziptastic-core 0.2.0.0 → 0.2.0.1
raw patch · 5 files changed
+18/−4 lines, 5 filesdep +base-compatdep ~basedep ~text
Dependencies added: base-compat
Dependency ranges changed: base, text
Files
- CHANGELOG.md +4/−0
- README.md +1/−0
- src/Ziptastic/Core.hs +5/−3
- test/Spec.hs +2/−0
- ziptastic-core.cabal +6/−1
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Changelog +## 0.2.0.1++ * Support GHC 7.8.+ ## 0.2.0.0 * Don't export scheme and port for base URL since Ziptastic supports both HTTP and HTTPS.
README.md view
@@ -3,6 +3,7 @@ [](http://www.haskell.org) [](https://tldrlegal.com/license/bsd-3-clause-license-%28revised%29) [](http://hackage.haskell.org/package/ziptastic-core)+[](https://travis-ci.org/Ziptastic/ziptastic-haskell) [](http://packdeps.haskellers.com/feed?needle=ziptastic-core) Core [Servant](http://haskell-servant.readthedocs.io/en/stable/) specification for the [Ziptastic](https://www.getziptastic.com/) API providing forward and reverse geocoding via country, zip code (postal code), latitude, and longitude.
src/Ziptastic/Core.hs view
@@ -15,6 +15,8 @@ , baseUrlPath ) where +import Prelude ()+import Prelude.Compat import Control.Monad (when) import Data.ISO3166_CountryCodes (CountryCode) import qualified Data.Aeson as Json@@ -42,9 +44,9 @@ , localeCoords :: Maybe LocaleCoords , localeCountry :: CountryCode , localeCounty :: Maybe Text -- ^ If given, text will never be empty.- , localeRegionFull :: Maybe Text -- ^ If given, text will never be empty.- , localeRegionAbbrev :: Maybe Text -- ^ If given, text will never be empty.- , localePostalCode :: Text -- ^ Will never be empty.+ , localeRegionFull :: Maybe Text -- ^ In the US, this is a state name (e.g. Michigan). If given, text will never be empty.+ , localeRegionAbbrev :: Maybe Text -- ^ In the US, this is a state abbreviation (e.g. MI). If given, text will never be empty.+ , localePostalCode :: Text -- ^ I.e. zip code. Text will never be empty. , localeTimeZone :: Maybe TZLabel } deriving (Eq, Generic, Show)
test/Spec.hs view
@@ -2,6 +2,8 @@ module Main (main) where +import Prelude ()+import Prelude.Compat import Control.Monad import Data.Aeson (decodeStrict') import qualified Data.ISO3166_CountryCodes as CC
ziptastic-core.cabal view
@@ -1,5 +1,5 @@ name: ziptastic-core-version: 0.2.0.0+version: 0.2.0.1 synopsis: Core Servant specification for the Ziptastic API for doing forward and reverse geocoding. description:@@ -31,6 +31,7 @@ build-depends: aeson >= 0.7 && < 1.2 , base >= 4.7 && < 5+ , base-compat == 0.9.* , bytestring == 0.10.* , http-api-data == 0.3.* , iso3166-country-codes >= 0.20140203.8@@ -54,6 +55,7 @@ build-depends: aeson , base+ , base-compat , here , hspec , iso3166-country-codes@@ -62,6 +64,9 @@ , ziptastic-core ghc-options: -threaded -rtsopts -with-rtsopts=-N default-language: Haskell2010+ other-extensions:+ OverloadedStrings+ QuasiQuotes source-repository head type: git