ziptastic-core 0.1.0.1 → 0.2.0.0
raw patch · 5 files changed
+11/−22 lines, 5 filesdep ~base
Dependency ranges changed: base
Files
- CHANGELOG.md +5/−0
- README.md +2/−0
- src/Ziptastic/Core.hs +1/−16
- test/Spec.hs +1/−4
- ziptastic-core.cabal +2/−2
CHANGELOG.md view
@@ -1,5 +1,10 @@ # Changelog +## 0.2.0.0++ * Don't export scheme and port for base URL since Ziptastic supports both HTTP and HTTPS.+ * Change LANGUAGE pragma formatting to support older GHCs.+ ## 0.1.0.1 * Add version bounds.
README.md view
@@ -2,6 +2,8 @@ [](http://www.haskell.org) [](https://tldrlegal.com/license/bsd-3-clause-license-%28revised%29)+[](http://hackage.haskell.org/package/ziptastic-core)+[](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
@@ -1,11 +1,4 @@-{-# LANGUAGE- DataKinds- , DeriveGeneric- , FlexibleInstances- , GeneralizedNewtypeDeriving- , OverloadedStrings- , TypeOperators-#-}+{-# LANGUAGE DataKinds, DeriveGeneric, FlexibleInstances, GeneralizedNewtypeDeriving, OverloadedStrings, TypeOperators #-} -- | This module provides a complete and type-safe API specification for -- Ziptastic's forward and reverse geocoding API using Servant@@ -19,9 +12,7 @@ , LocaleCoords(..) , LocaleInfo(..) , baseUrlHost- , baseUrlIsHttps , baseUrlPath- , baseUrlPort ) where import Control.Monad (when)@@ -125,14 +116,8 @@ -- API URL components-baseUrlIsHttps :: Bool-baseUrlIsHttps = True- baseUrlHost :: String baseUrlHost = "zip.getziptastic.com"--baseUrlPort :: Int-baseUrlPort = 443 baseUrlPath :: String baseUrlPath = ""
test/Spec.hs view
@@ -1,7 +1,4 @@-{-# LANGUAGE- OverloadedStrings- , QuasiQuotes-#-}+{-# LANGUAGE OverloadedStrings, QuasiQuotes #-} module Main (main) where
ziptastic-core.cabal view
@@ -1,5 +1,5 @@ name: ziptastic-core-version: 0.1.0.1+version: 0.2.0.0 synopsis: Core Servant specification for the Ziptastic API for doing forward and reverse geocoding. description:@@ -20,7 +20,7 @@ build-type: Simple extra-source-files: README.md cabal-version: >=1.10-tested-with: GHC==8.0.2+tested-with: GHC == 8.0.2 extra-source-files: CHANGELOG.md README.md