google-static-maps 0.5.0.0 → 0.5.0.1
raw patch · 3 files changed
+23/−21 lines, 3 filesdep −MissingHdep ~JuicyPixelsdep ~aesondep ~basePVP ok
version bump matches the API change (PVP)
Dependencies removed: MissingH
Dependency ranges changed: JuicyPixels, aeson, base, base64-bytestring, bytedump, cryptonite, double-conversion, http-client, memory, text, utf8-string
API changes (from Hackage documentation)
Files
- changelog.md +5/−1
- google-static-maps.cabal +12/−13
- src/Web/Google/Static/Maps.hs +6/−7
changelog.md view
@@ -1,7 +1,11 @@+# 0.5.0.1 + +* Update dependencies for GHC 8.2.1 and relax lower bounds. + # 0.5.0.0 * Depend on more recent version of `servant` package and, consequently, - `servant-client`, `aeson` and `cryptonite` packages + `servant-client`, `aeson` and `cryptonite` packages # 0.4.0.0
google-static-maps.cabal view
@@ -1,5 +1,5 @@ name: google-static-maps -version: 0.5.0.0 +version: 0.5.0.1 synopsis: Bindings to the Google Static Maps API description: The <https://developers.google.com/maps/documentation/static-maps/intro Google Static Maps API> returns a map as an image via an HTTP request. This library @@ -26,23 +26,22 @@ hs-source-dirs: src exposed-modules: Web.Google.Static.Maps , Web.Google.Maps.Common - build-depends: base >= 4.7 && < 5 - , base64-bytestring >= 1.0 && < 1.1 + build-depends: base >= 4.7 && < 4.11 + , base64-bytestring >= 0.1.1 && < 1.1 , bytestring >= 0.10 && < 0.11 - , aeson >= 1.1 && < 1.2 - , bytedump >= 1.0 && < 1.1 - , cryptonite >= 0.23 && < 0.24 - , double-conversion >= 2.0 && < 2.1 - , http-client >= 0.5 && < 0.6 - , JuicyPixels >= 3.2 && < 3.3 - , memory >= 0.14 && < 0.15 - , MissingH >=1.4 && < 1.5 + , aeson >= 0.7 && < 1.3 + , bytedump >= 0.9 && < 1.1 + , cryptonite >= 0.1 && < 0.25 + , double-conversion >= 0.2 && < 2.1 + , http-client >= 0.1 && < 0.6 + , JuicyPixels >= 1.0 && < 3.3 + , memory >= 0.1 && < 0.15 , network-uri >= 2.6 && < 2.7 , servant >= 0.11 && < 0.12 , servant-client >= 0.11 && < 0.12 , servant-JuicyPixels >= 0.3 && < 0.4 - , text >= 1.2 && < 1.3 - , utf8-string >= 1.0 && < 1.1 + , text >= 0.1 && < 1.3 + , utf8-string >= 0.3 && < 1.1 default-language: Haskell2010 source-repository head
src/Web/Google/Static/Maps.hs view
@@ -10,9 +10,9 @@ -- Copyright : (c) Mike Pilgrem 2017 -- Maintainer : public@pilgrem.com -- Stability : experimental --- +-- -- This module has no connection with Google Inc. or its affiliates. --- +-- -- The <https://developers.google.com/maps/documentation/static-maps/intro Google Static Maps API> -- returns a map as an image via an HTTP request. This library provides bindings -- in Haskell to that API (version 2). @@ -28,9 +28,9 @@ -- library with the Google Static Maps API. -- -- > {-# LANGUAGE OverloadedStrings #-} --- > +-- > -- > module Main (main) where --- > +-- > -- > import Data.Maybe (fromJust) -- > import Graphics.Gloss (Display (..), display, white) -- package gloss -- > import Graphics.Gloss.Juicy (fromDynamicImage) -- package gloss-juicy @@ -38,7 +38,7 @@ -- > import Network.HTTP.Client.TLS (tlsManagerSettings) -- > import Web.Google.Static.Maps (Center (..), Key (..), Location (..), Size (..), -- > staticmap, StaticmapResponse (..), Zoom (..)) --- > +-- > -- > main :: IO () -- > main = do -- > putStrLn "A test of the Google Static Maps API.\nNB: The use of the \ @@ -60,7 +60,7 @@ -- > let picture = fromJust $ fromDynamicImage response -- > title = "Test Google Static Maps API" -- > window = InWindow title (w, h) (10, 10) --- > display window white picture +-- > display window white picture -- > Left err -> putStrLn $ "Error! Result:\n" ++ show err module Web.Google.Static.Maps ( -- * Functions @@ -119,7 +119,6 @@ import Data.List (intersperse) import Data.Maybe (catMaybes) import Data.Proxy (Proxy (..)) -import Data.String.Utils (replace) import Data.Text (Text) import qualified Data.Text as T (append, concat, pack) import Data.Text.Encoding (decodeUtf8, encodeUtf8)