diff --git a/Setup.hs b/Setup.hs
--- a/Setup.hs
+++ b/Setup.hs
@@ -26,7 +26,7 @@
 
 compileCheck :: FilePath -> String -> String -> String -> IO Bool
 compileCheck cc testName message sourceCode = do
-        withTempDirectory normal "" testName $ \tmpDir -> do
+    withTempDirectory normal "" testName $ \tmpDir -> do
         writeFile (tmpDir ++ "/" ++ testName ++ ".c") sourceCode
         ec <- myRawSystemExitCode normal cc [tmpDir </> testName ++ ".c", "-o", tmpDir ++ "/a","-no-hs-main"]
         notice normal $ message ++ show (ec == ExitSuccess)
@@ -54,7 +54,7 @@
 
 checkGetrandom :: FilePath -> LocalBuildInfo -> IO LocalBuildInfo
 checkGetrandom cc lbi = do
-        libcGetrandom <- compileCheck cc "testLibcGetrandom" "Result of libc getrandom() Test: "
+    libcGetrandom <- compileCheck cc "testLibcGetrandom" "Result of libc getrandom() Test: "
                 (unlines        [ "#define _GNU_SOURCE"
                                 , "#include <errno.h>"
                                 , "#include <sys/random.h>"
@@ -65,8 +65,8 @@
                                 , "    return getrandom(&tmp, sizeof(tmp), GRND_NONBLOCK) != -1;"
                                 , "}"
                                 ])
-        if libcGetrandom then return $ addOptions cArgsLibc cArgsLibc lbi
-        else do
+    if libcGetrandom then return $ addOptions cArgsLibc cArgsLibc lbi
+    else do
         syscallGetrandom <- compileCheck cc "testSyscallGetrandom" "Result of syscall getrandom() Test: "
                 (unlines        [ "#define _GNU_SOURCE"
                                 , "#include <errno.h>"
diff --git a/entropy.cabal b/entropy.cabal
--- a/entropy.cabal
+++ b/entropy.cabal
@@ -1,5 +1,6 @@
 name:           entropy
-version:        0.4.1.6
+
+version:        0.4.1.7
 description:    A mostly platform independent method to obtain cryptographically strong entropy
                 (RDRAND, urandom, CryptAPI, and patches welcome)
                 Users looking for cryptographically strong (number-theoretically
@@ -34,7 +35,7 @@
 
 
 custom-setup
-  setup-depends: Cabal >= 1.10 && < 3.3
+  setup-depends: Cabal >= 1.10 && < 3.7
                , base < 5
                , filepath < 1.5
                , directory < 1.4
