diff --git a/Main.hs b/Main.hs
--- a/Main.hs
+++ b/Main.hs
@@ -25,6 +25,8 @@
     isPure ('\\':c:cs)
         | isDigit c = False
         | otherwise = isPure cs
+    isPure ('^':_) = False
+    isPure ('$':_) = False
     isPure (_:cs) = isPure cs
 
 run :: String -> IO ()
diff --git a/regex-genex.cabal b/regex-genex.cabal
--- a/regex-genex.cabal
+++ b/regex-genex.cabal
@@ -1,9 +1,9 @@
 Name            : regex-genex
-Version         : 0.6.1
+Version         : 0.6.2
 license         : OtherLicense
 license-file    : LICENSE
 cabal-version   : >= 1.6
-copyright       : 2011-2014 Audrey Tang
+copyright       : 2011-2015 Audrey Tang
 maintainer      : Audrey Tang <audreyt@audreyt.org>
 category        : Text, Regex
 stability       : experimental
@@ -12,7 +12,7 @@
 synopsis        : From a regex, generate all possible strings it can match
 description     : From a regex, generate all possible strings it can match
 author          : Audrey Tang <audreyt@audreyt.org>
-Tested-With:    GHC==7.0.2 GHC==7.4.1 GHC==7.8.2
+Tested-With:    GHC==7.0.2 GHC==7.4.1
 
 library
     hs-source-dirs:     . src
@@ -20,14 +20,14 @@
     other-modules:    Regex.Genex.Pure
     extensions      : ImplicitParams, NamedFieldPuns, ParallelListComp, PatternGuards, RecordWildCards
     build-depends:
-        base >= 3 && < 5, mtl, containers, sbv, regex-tdfa, stream-monad, text
+        base >= 3 && < 5, mtl, containers, sbv == 2.10, regex-tdfa, stream-monad, text, logict
 
 executable genex
     main-is:            Main.hs
     hs-source-dirs:     . src
     extensions      : ImplicitParams, NamedFieldPuns, ParallelListComp, PatternGuards, RecordWildCards
     build-depends:
-        base >= 3 && < 5, mtl, containers, sbv, regex-tdfa
+        base >= 3 && < 5, mtl, containers, sbv == 2.10, regex-tdfa
 
 source-repository head
   type:     git
