diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,8 @@
-[1.0.8](https://github.com/guillaume-nargeot/hpc-coveralls/issues?q=milestone:v1.0.9+is:closed)
+[1.0.10](https://github.com/guillaume-nargeot/hpc-coveralls/issues?q=milestone:v1.0.10+is:closed)
+------
+* Allow building with GHC 8.2 (issue #68)
+
+[1.0.9](https://github.com/guillaume-nargeot/hpc-coveralls/issues?q=milestone:v1.0.9+is:closed)
 -----
 * Allow aeson 1.2 (issue #67)
 
diff --git a/hpc-coveralls.cabal b/hpc-coveralls.cabal
--- a/hpc-coveralls.cabal
+++ b/hpc-coveralls.cabal
@@ -1,5 +1,5 @@
 name:           hpc-coveralls
-version:        1.0.9
+version:        1.0.10
 synopsis:       Coveralls.io support for Haskell.
 description:
   This utility converts and sends Haskell projects hpc code coverage to
@@ -23,12 +23,12 @@
 license-file:   LICENSE
 author:         Guillaume Nargeot
 maintainer:     Guillaume Nargeot <guillaume+hackage@nargeot.com>
-copyright:      (c) 2014-2015 Guillaume Nargeot
+copyright:      (c) 2014-2017 Guillaume Nargeot
 category:       Control
 build-type:     Simple
 stability:      experimental
 cabal-version:  >= 1.8
-tested-with:    GHC == 7.6, GHC == 7.8, GHC == 7.10, GHC == 8.0
+tested-with:    GHC == 7.6, GHC == 7.8, GHC == 7.10, GHC == 8.0, GHC == 8.2
 homepage:       https://github.com/guillaume-nargeot/hpc-coveralls
 bug-reports:    https://github.com/guillaume-nargeot/hpc-coveralls/issues
 
@@ -66,7 +66,7 @@
     directory      >= 1.2     && <1.4,
     directory-tree >= 0.12    && <0.13,
     hpc            >= 0.6     && <0.7,
-    process        >= 1.1.0.1 && <1.5,
+    process        >= 1.1.0.1 && <1.7,
     pureMD5        >= 2.1     && <2.2,
     retry          >= 0.5     && <0.8,
     safe           >= 0.3     && <0.4,
@@ -87,7 +87,7 @@
     directory      >= 1.2     && <1.4,
     directory-tree >= 0.12    && <0.13,
     hpc            >= 0.6     && <0.7,
-    process        >= 1.1.0.1 && <1.5,
+    process        >= 1.1.0.1 && <1.7,
     pureMD5        >= 2.1     && <2.2,
     retry          >= 0.5     && <0.8,
     safe           >= 0.3     && <0.4,
diff --git a/src/Trace/Hpc/Coveralls/Cabal.hs b/src/Trace/Hpc/Coveralls/Cabal.hs
--- a/src/Trace/Hpc/Coveralls/Cabal.hs
+++ b/src/Trace/Hpc/Coveralls/Cabal.hs
@@ -1,3 +1,5 @@
+{-# LANGUAGE CPP #-}
+
 -- |
 -- Module:      Trace.Hpc.Coveralls.Cabal
 -- Copyright:   (c) 2014-2015 Guillaume Nargeot
@@ -34,11 +36,21 @@
         ParseFailed _ -> return Nothing
         ParseOk _warnings gpd -> return $ Just $ name ++ "-" ++ version
             where pkg = package . packageDescription $ gpd
-                  PackageName name = pkgName pkg
+                  name = unPackageName $ pkgName pkg
                   version = showVersion (pkgVersion pkg)
-                  showVersion = intercalate "." . map show . versionBranch
+                  showVersion = intercalate "." . map show . versionNumbers
 
 currDirPkgNameVer :: IO (Maybe String)
 currDirPkgNameVer = runMaybeT $ pkgNameVersion currentDir
     where pkgNameVersion = MaybeT . getPackageNameVersion <=< MaybeT . getCabalFile
           currentDir = "."
+
+#if !(MIN_VERSION_Cabal(1,22,0))
+unPackageName :: PackageName -> String
+unPackageName (PackageName name) = name
+#endif
+
+#if !(MIN_VERSION_Cabal(2,0,0))
+versionNumbers :: Version -> [Int]
+versionNumbers = versionBranch
+#endif
