diff --git a/haskell-docs.cabal b/haskell-docs.cabal
--- a/haskell-docs.cabal
+++ b/haskell-docs.cabal
@@ -1,5 +1,5 @@
 name:                haskell-docs
-version:             4.2.7
+version:             4.2.8
 synopsis:            A program to find and display the docs and type of a name
 description:         Given a module name and a name, or just a name, it will find and display
                      the documentation of that name.
@@ -49,7 +49,8 @@
 category:            Development
 build-type:          Simple
 Tested-With:         GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.4,
-                     GHC == 7.10.2, GHC == 8.0.1, GHC == 8.1.*
+                     GHC == 7.10.2, GHC == 8.0.2, GHC == 8.1.*,
+                     GHC == 8.2.2
 cabal-version:       >=1.8
 Homepage:            http://github.com/ivan-m/haskell-docs
 Bug-Reports:         http://github.com/ivan-m/haskell-docs/issues
@@ -87,13 +88,15 @@
                      , cryptohash
                      , directory
                      , filepath
-                     , ghc >= 7.4 && < 8.1
+                     , ghc >= 7.4 && < 8.3
                      , ghc-paths
                      , monad-loops
                      , process
                      , text
-                     , text
                      , unordered-containers
+  if impl(ghc==8.2.*)
+     build-depends:   haddock-api==2.18.*
+                    , haddock-library
   if impl(ghc==8.0.*)
      build-depends:   haddock-api==2.17.*
                     , haddock-library
@@ -112,6 +115,9 @@
 
   if impl(ghc>=7.8.4)
     build-depends: haddock-api
+
+  if impl(ghc<7.10)
+    build-depends: cryptonite < 0.22
 
 executable haskell-docs
   hs-source-dirs:      src/main
diff --git a/src/Haskell/Docs/Ghc.hs b/src/Haskell/Docs/Ghc.hs
--- a/src/Haskell/Docs/Ghc.hs
+++ b/src/Haskell/Docs/Ghc.hs
@@ -86,6 +86,9 @@
 #if __GLASGOW_HASKELL__ == 800
 showSDocForUser = Outputable.showSDocForUser
 #endif
+#if __GLASGOW_HASKELL__ == 802
+showSDocForUser = Outputable.showSDocForUser
+#endif
 
 -- | Set the import context.
 setImportContext :: ModuleName -> Ghc ()
