diff --git a/OpenId2/Discovery.hs b/OpenId2/Discovery.hs
--- a/OpenId2/Discovery.hs
+++ b/OpenId2/Discovery.hs
@@ -1,5 +1,6 @@
 {-# LANGUAGE FlexibleContexts #-}
 {-# LANGUAGE OverloadedStrings #-}
+{-# LANGUAGE CPP #-}
 
 --------------------------------------------------------------------------------
 -- |
@@ -69,7 +70,10 @@
               -> Int -- ^ remaining redirects
               -> Manager
               -> m (Maybe (Provider, Identifier, IdentType))
-discoverYADIS _ _ 0 _ = liftIO $ throwIO TooManyRedirects
+discoverYADIS _ _ 0 _ = liftIO $ throwIO $ TooManyRedirects
+#if MIN_VERSION_http_conduit(1,6,0)
+    []
+#endif
 discoverYADIS ident mb_loc redirects manager = do
     let uri = fromMaybe (unpack $ identifier ident) mb_loc
     req <- liftIO $ parseUrl uri
diff --git a/authenticate.cabal b/authenticate.cabal
--- a/authenticate.cabal
+++ b/authenticate.cabal
@@ -1,5 +1,5 @@
 name:            authenticate
-version:         1.3.0.1
+version:         1.3.1
 license:         BSD3
 license-file:    LICENSE
 author:          Michael Snoyman, Hiromi Ishii, Arash Rouhani
@@ -18,7 +18,7 @@
 library
     build-depends:   base                          >= 4        && < 5
                    , aeson                         >= 0.5
-                   , http-conduit                  >= 1.5      && < 1.6
+                   , http-conduit                  >= 1.5      && < 1.7
                    , tagsoup                       >= 0.12     && < 0.13
                    , transformers                  >= 0.1      && < 0.4
                    , bytestring                    >= 0.9
