aboutsummaryrefslogtreecommitdiff
path: root/lib/Web/OpenWeatherMap/API.hs
diff options
context:
space:
mode:
authorChris Martin <ch.martin@gmail.com>2019-03-26 19:03:00 -0600
committerIgor Pashev <pashev.igor@gmail.com>2019-03-27 07:53:01 +0200
commit1882add7df3ea1a77f893aaf1692e62df68e5093 (patch)
tree9b98d59e7b1c611f41806bfc84711cbf667c81f5 /lib/Web/OpenWeatherMap/API.hs
parent647f9536798253556a50d4969dd9439f8a2239e4 (diff)
downloadopenweathermap-1882add7df3ea1a77f893aaf1692e62df68e5093.tar.gz
Fix build for latest version of servant-client
Various modules have been removed from servant-client, and the things previously imported from them now need to be imported from the top-level "Servant.Client" module. The ClientEnv constructor now has a third parameter. Instead of using the constructor directly, now using mkClientEnv (which was introduced in servant-client 0.13, necessitating raising the minimum version on the dependency).
Diffstat (limited to 'lib/Web/OpenWeatherMap/API.hs')
-rw-r--r--lib/Web/OpenWeatherMap/API.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Web/OpenWeatherMap/API.hs b/lib/Web/OpenWeatherMap/API.hs
index 0c1e282..757a6be 100644
--- a/lib/Web/OpenWeatherMap/API.hs
+++ b/lib/Web/OpenWeatherMap/API.hs
@@ -14,8 +14,7 @@ module Web.OpenWeatherMap.API (
import Data.Proxy (Proxy(..))
import Servant.API ((:>), (:<|>)(..), JSON, Get, QueryParam)
-import Servant.Client (client)
-import Servant.Common.Req (ClientM)
+import Servant.Client (ClientM, client)
import Web.OpenWeatherMap.Types.CurrentWeather (CurrentWeather)