diff options
-rw-r--r-- | lib/Web/OpenWeatherMap/Client.hs | 4 | ||||
-rw-r--r-- | openweathermap.cabal | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Web/OpenWeatherMap/Client.hs b/lib/Web/OpenWeatherMap/Client.hs index c3611ee..758ee8f 100644 --- a/lib/Web/OpenWeatherMap/Client.hs +++ b/lib/Web/OpenWeatherMap/Client.hs @@ -7,7 +7,7 @@ module Web.OpenWeatherMap.Client ( ) where import Network.HTTP.Client (newManager, defaultManagerSettings) -import Servant.Client (BaseUrl(BaseUrl), ClientEnv, mkClientEnv, ClientM, Scheme(Http), ServantError, runClientM) +import Servant.Client (BaseUrl(BaseUrl), ClientEnv, mkClientEnv, ClientM, Scheme(Http), ClientError, runClientM) import Web.OpenWeatherMap.Types.CurrentWeather (CurrentWeather) import qualified Web.OpenWeatherMap.API as API @@ -24,7 +24,7 @@ data Location getWeather :: String -- ^ API key. -> Location - -> IO (Either ServantError CurrentWeather) + -> IO (Either ClientError CurrentWeather) getWeather appid loc = defaultEnv >>= runClientM (api loc appid) diff --git a/openweathermap.cabal b/openweathermap.cabal index 4565f71..8ba748f 100644 --- a/openweathermap.cabal +++ b/openweathermap.cabal @@ -30,7 +30,7 @@ library , aeson , http-client , servant - , servant-client >= 0.13 + , servant-client >= 0.16 exposed-modules: Web.OpenWeatherMap.API Web.OpenWeatherMap.Client |