packages feed

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 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 @@ [![Haskell Programming Language](https://img.shields.io/badge/language-Haskell-blue.svg)](http://www.haskell.org) [![BSD3 License](http://img.shields.io/badge/license-BSD3-brightgreen.svg)](https://tldrlegal.com/license/bsd-3-clause-license-%28revised%29) [![Hackage](https://img.shields.io/hackage/v/ziptastic-core.svg)](http://hackage.haskell.org/package/ziptastic-core)+[![Build status](https://travis-ci.org/Ziptastic/ziptastic-haskell.svg?branch=master)](https://travis-ci.org/Ziptastic/ziptastic-haskell) [![Hackage-Deps](https://img.shields.io/hackage-deps/v/ziptastic-core.svg)](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