diff --git a/yi-rope.cabal b/yi-rope.cabal
--- a/yi-rope.cabal
+++ b/yi-rope.cabal
@@ -1,5 +1,5 @@
 name:                yi-rope
-version:             0.5.1.0
+version:             0.5.2.0
 synopsis:            A rope data structure used by Yi
 description:         A rope data structure used by Yi
 license:             GPL-2
@@ -29,7 +29,7 @@
     , text
     , text-icu
 
-  if impl(ghc < 7.8)
+  if impl(ghc >= 7.8)
     build-depends: charsetdetect-ae
 
   hs-source-dirs:      src
