diff --git a/src/Data/Text/ICU/Replace.hs b/src/Data/Text/ICU/Replace.hs
--- a/src/Data/Text/ICU/Replace.hs
+++ b/src/Data/Text/ICU/Replace.hs
@@ -40,7 +40,7 @@
 import           Control.Applicative
 import           Data.Attoparsec.Text
 import           Data.Foldable
-#if __GLASGOW_HASKELL__ < 804
+#if __GLASGOW_HASKELL__ >= 804
 import           Data.Semigroup (Semigroup)
 #endif
 import           Data.Monoid
@@ -63,7 +63,7 @@
 -- construct them.
 newtype Replace = Replace { unReplace :: Match -> TB.Builder } deriving
                   ( Monoid
-#if __GLASGOW_HASKELL__ < 804
+#if __GLASGOW_HASKELL__ >= 804
                   , Semigroup
 #endif
                   )
diff --git a/text-regex-replace.cabal b/text-regex-replace.cabal
--- a/text-regex-replace.cabal
+++ b/text-regex-replace.cabal
@@ -1,53 +1,58 @@
-name: text-regex-replace
-version: 0.1.1.2
-cabal-version: >=1.10
-build-type: Simple
-license: Apache-2.0
-license-file: LICENSE
-maintainer: erochest@gmail.com
-synopsis: Easy replacement when using text-icu regexes.
-description:
-    This provides a convenient API for doing replacements off of a regular
-    expression, similar to what regex libraries in other languages provide.
-    .
-    At this point, this hasn't been used enough to have any idea of its
-    performance. Caveat emptor.
-category: Data, Text
-author: Eric Rochester
+-- This file has been generated from package.yaml by hpack version 0.20.0.
+--
+-- see: https://github.com/sol/hpack
+--
+-- hash: 9d4497c69c14d123aaffebeb4ebeaea384653be0d376c494ea958f4d172ee358
 
-source-repository head
-    type: git
-    location: git://github.com/erochest/text-regex-replace.git
+name:           text-regex-replace
+version:        0.1.1.3
+synopsis:       Easy replacement when using text-icu regexes.
+description:    This provides a convenient API for doing replacements off of a regular
+                expression, similar to what regex libraries in other languages provide.
+                .
+                At this point, this hasn't been used enough to have any idea of its
+                performance. Caveat emptor.
+category:       Data, Text
+author:         Eric Rochester
+maintainer:     erochest@gmail.com
+license:        Apache-2.0
+license-file:   LICENSE
+build-type:     Simple
+cabal-version:  >= 1.10
 
-source-repository this
-    type: git
-    location: git://github.com/erochest/text-regex-replace.git
-    tag: 0.1.0.1
+source-repository head
+  type: git
+  location: git://github.com/erochest/text-regex-replace.git
 
 library
-    exposed-modules:
-        Data.Text.ICU.Replace
-    build-depends:
-        base >=4.7 && <5,
-        attoparsec >=0.12 && <0.14,
-        text ==1.2.*,
-        text-icu ==0.7.*
-    default-language: Haskell2010
-    hs-source-dirs: src
+  hs-source-dirs:
+      src
+  build-depends:
+      attoparsec >=0.12 && <0.14
+    , base >=4.7 && <5
+    , text >=1.2 && <1.3
+    , text-icu >=0.7 && <0.8
+  exposed-modules:
+      Data.Text.ICU.Replace
+  other-modules:
+      Paths_text_regex_replace
+  default-language: Haskell2010
 
-test-suite  text-regex-replace-specs
-    type: exitcode-stdio-1.0
-    main-is: Specs.hs
-    build-depends:
-        base >=4.10.1.0,
-        text-regex-replace -any,
-        QuickCheck >=2.10.1,
-        smallcheck >=1.1.3.1,
-        hspec >=2.4.8,
-        text ==1.2.*,
-        text-icu ==0.7.*
-    default-language: Haskell2010
-    hs-source-dirs: specs
-    other-modules:
-        Data.Text.ICU.ReplaceSpec
-    ghc-options: -threaded -rtsopts
+test-suite text-regex-replace-specs
+  type: exitcode-stdio-1.0
+  main-is: Specs.hs
+  hs-source-dirs:
+      specs
+  ghc-options: -threaded -rtsopts
+  build-depends:
+      QuickCheck
+    , base
+    , hspec
+    , smallcheck
+    , text >=1.2 && <1.3
+    , text-icu >=0.7 && <0.8
+    , text-regex-replace
+  other-modules:
+      Data.Text.ICU.ReplaceSpec
+      Paths_text_regex_replace
+  default-language: Haskell2010
