diff --git a/CHANGES b/CHANGES
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+0.3.6.6:
+- Add FlexibleContexts to allow compiling with 7.10.1
 0.3.6.2:
 - move some INLINE pragmas to make it compile with 7.2.1
 0.3.6.1:
diff --git a/Data/ByteString/Search/Internal/Utils.hs b/Data/ByteString/Search/Internal/Utils.hs
--- a/Data/ByteString/Search/Internal/Utils.hs
+++ b/Data/ByteString/Search/Internal/Utils.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE BangPatterns #-}
+{-# LANGUAGE BangPatterns, FlexibleContexts #-}
 {-# OPTIONS_HADDOCK hide, prune #-}
 -- |
 -- Module         : Data.ByteString.Search.Internal.Utils
diff --git a/stringsearch.cabal b/stringsearch.cabal
--- a/stringsearch.cabal
+++ b/stringsearch.cabal
@@ -7,7 +7,7 @@
 -- The package version. See the Haskell package versioning policy
 -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for
 -- standards guiding when and how versions should be incremented.
-Version:             0.3.6.5
+Version:             0.3.6.6
 
 Homepage:            https://bitbucket.org/dafis/stringsearch
 Bug-reports:         https://bitbucket.org/dafis/stringsearch/issues
