diff --git a/lxd-client.cabal b/lxd-client.cabal
--- a/lxd-client.cabal
+++ b/lxd-client.cabal
@@ -1,5 +1,5 @@
 name:                lxd-client
-version:             0.1.0.2
+version:             0.1.0.3
 synopsis:            LXD client written in Haskell.
 description:
     Implementation of the LXD client protocol in Haskell.
@@ -11,7 +11,7 @@
     More information and a tutorial is in "Network.LXD.Client.Commands".
     .
     Accompanying blog post:
-    <https://deliquus.com/posts/2017-10-02-using-servant-to-orchestrate-lxd-containers.md>
+    <https://deliquus.com/posts/2017-10-02-using-servant-to-orchestrate-lxd-containers.html>
 homepage:            https://github.com/hverr/haskell-lxd-client#readme
 license:             GPL-3
 license-file:        LICENSE
@@ -54,8 +54,8 @@
                      , mtl              >= 2.2.1 && <3
                      , network          >= 2.6.3.2 && <3
                      , semigroups       >= 0.18.3 && <1
-                     , servant          >= 0.11 && <0.12
-                     , servant-client   >= 0.11 && <0.12
+                     , servant          >= 0.11 && <0.13
+                     , servant-client   >= 0.11 && <0.13
                      , text             >= 1.2.2.2 && <2
                      , tls              >= 1.3.9 && <2
                      , transformers     >= 0.5.2.0 && <1
diff --git a/src/Network/LXD/Client/API.hs b/src/Network/LXD/Client/API.hs
--- a/src/Network/LXD/Client/API.hs
+++ b/src/Network/LXD/Client/API.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE CPP #-}
 {-# LANGUAGE DataKinds #-}
 {-# LANGUAGE FlexibleContexts #-}
 {-# LANGUAGE GADTs #-}
@@ -118,7 +119,12 @@
 import qualified Network.WebSockets as WS
 
 import Servant.API
+
+#if MIN_VERSION_servant(0, 12, 0)
+import Servant.Client hiding (Response, FailureResponse)
+#else
 import Servant.Client hiding (FailureResponse)
+#endif
 
 import Web.HttpApiData (FromHttpApiData, ToHttpApiData, toHeader, parseHeader)
 
diff --git a/src/Network/LXD/Client/Commands.hs b/src/Network/LXD/Client/Commands.hs
--- a/src/Network/LXD/Client/Commands.hs
+++ b/src/Network/LXD/Client/Commands.hs
@@ -13,7 +13,7 @@
 -- shouldn't need this module.
 --
 -- Accompanying blog post:
--- <https://deliquus.com/posts/2017-10-02-using-servant-to-orchestrate-lxd-containers.md>
+-- <https://deliquus.com/posts/2017-10-02-using-servant-to-orchestrate-lxd-containers.html>
 --
 module Network.LXD.Client.Commands (
   -- * How to use this library
