diff --git a/range-set-list.cabal b/range-set-list.cabal
--- a/range-set-list.cabal
+++ b/range-set-list.cabal
@@ -1,9 +1,5 @@
--- This file has been generated from package.yaml by hpack version 0.8.0.
---
--- see: https://github.com/sol/hpack
-
 name:                range-set-list
-version:             0.1.2.0
+version:             0.1.2.1
 synopsis:            Memory efficient sets with ranges of elements.
 description:         Memory efficient sets with continuous ranges of discrete, bounded elements. List- and map-based implementations. Interface mimics 'Data.Set' where possible.
 homepage:            https://github.com/phadej/range-set-list#readme
@@ -13,7 +9,7 @@
 author:              Oleg Grenrus <oleg.grenrus@iki.fi>
 maintainer:          Oleg Grenrus <oleg.grenrus@iki.fi>
 category:            Data
-tested-with:         GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, GHC==7.10.2
+tested-with:         GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.2
 build-type:          Simple
 cabal-version:       >= 1.10
 
@@ -31,11 +27,13 @@
   other-extensions: DeriveDataTypeable Safe
   ghc-options: -Wall -fwarn-tabs
   build-depends:
-    base        >=4.5      && <4.10,
+    base        >=4.5      && <4.12,
     containers  >=0.5.3    && <0.6,
-    semigroups  >=0.16.2.2 && <0.19,
     deepseq     >=1.3.0.0  && <1.5,
     hashable    >=1.2.3.3  && <1.3
+  if !impl(ghc >= 8.0)
+    build-depends:
+      semigroups  >=0.16.2.2 && <0.19
   exposed-modules:
     Data.RangeSet.Internal
     Data.RangeSet.IntMap
@@ -50,15 +48,17 @@
     tests
   ghc-options: -Wall -fwarn-tabs
   build-depends:
-    base        >=4.5      && <4.10,
-    containers  >=0.5.3    && <0.6,
-    semigroups  >=0.16.2.2 && <0.19,
-    deepseq     >=1.3.0.0  && <1.5,
-    hashable    >=1.2.3.3  && <1.3,
+    base,
+    containers,
+    deepseq,
+    hashable,
     containers        >=0.5 && <0.6,
-    tasty             >=0.8 && <0.12,
-    tasty-quickcheck  >=0.8 && <0.9,
+    tasty             >=0.8 && <1.2,
+    tasty-quickcheck  >=0.8 && <0.11,
     range-set-list
+  if !impl(ghc >= 8.0)
+    build-depends:
+      semigroups
   other-modules:
     IntMap
     List
