diff --git a/Setup.hs b/Setup.hs
deleted file mode 100644
--- a/Setup.hs
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/usr/bin/env runhaskell
-
--- I usually compile this with "ghc --make -o setup Setup.hs"
-
-import Distribution.Simple(defaultMain)
-main = defaultMain
diff --git a/Setup.lhs b/Setup.lhs
new file mode 100644
--- /dev/null
+++ b/Setup.lhs
@@ -0,0 +1,11 @@
+#!/usr/bin/env runhaskell
+
+> -- I usually compile this with "ghc --make -o setup Setup.hs"
+
+> module Main (main) where
+>
+> import Distribution.Simple
+>
+> main :: IO ()
+> main = defaultMain
+
diff --git a/Text/Regex.hs b/Text/Regex.hs
--- a/Text/Regex.hs
+++ b/Text/Regex.hs
@@ -104,7 +104,8 @@
                 Just (lead, _, trail, bgroups) ->
                     let newval = if (head bgroups) == "\\"
                                  then "\\"
-                                 else let index = (read (head bgroups)) - 1
+                                 else let index :: Int
+                                          index = (read (head bgroups)) - 1
                                           in
                                           if index == -1
                                              then match
diff --git a/regex-compat.cabal b/regex-compat.cabal
--- a/regex-compat.cabal
+++ b/regex-compat.cabal
@@ -2,7 +2,7 @@
 -- To fix for cabal < 1.1.4 comment out the Extra-Source-Files line
 -- ****************************************************************
 Name:                   regex-compat
-Version:                0.71
+Version:                0.71.0.1
 -- Cabal-Version:       >=1.1.4
 License:                BSD3
 License-File:           LICENSE
@@ -15,8 +15,9 @@
 Synopsis:               Replaces/Enhances Text.Regex
 Description:            One module layer over regex-posix to replace Text.Regex
 Category:               Text
+Build-Type:             Simple
 Tested-With:            GHC
-Build-Depends:          regex-base, regex-posix, base
+Build-Depends:          regex-base, regex-posix, base >= 2.0
 -- Data-Files:
 -- Extra-Source-Files:     Text/Regex/Lazy/TestCompat.hs, Text/Regex/Lazy/TestFull.hs, Text/Regex/Impl/TestContext.hs, TestTextRegexLazy.hs, Example.hs, Example2.hs, lazy.html, README, Makefile
 -- Extra-Tmp-Files:
