diff --git a/ghc-syb-utils.cabal b/ghc-syb-utils.cabal
--- a/ghc-syb-utils.cabal
+++ b/ghc-syb-utils.cabal
@@ -1,5 +1,5 @@
 name:            ghc-syb-utils
-version:         0.2.3.1
+version:         0.2.3.2
 license:         BSD3
 license-file:    LICENSE
 author:          Claus Reinke
@@ -11,9 +11,11 @@
 category:        Development
 stability:       provisional
 build-type:      Simple
-cabal-version:   >= 1.8
+cabal-version:   >= 1.10
 tested-with:     GHC ==7.8.3, GHC ==7.10.0
 
+extra-source-files: test/test-cases/*.hs
+
 library
   build-depends:   base >= 4 && < 5
                  , syb >= 0.1.0
@@ -27,15 +29,19 @@
       ghc-syb == 0.2.*
 
   hs-source-dirs:  .
-  extensions:      Rank2Types, CPP
+  default-language: Haskell2010
+  default-extensions: Rank2Types, CPP
   ghc-options:    -Wall
 
   exposed-modules: GHC.SYB.Utils
 
+
+
 test-suite regression-tests
   type: exitcode-stdio-1.0
   hs-source-dirs: test
   main-is: Regression.hs
+  default-language: Haskell2010
   build-depends:
                 base,
                 directory,
diff --git a/test/Regression.hs b/test/Regression.hs
--- a/test/Regression.hs
+++ b/test/Regression.hs
@@ -14,8 +14,8 @@
 
 main :: IO ()
 main = do
-  pkg_dir <- getCurrentDirectory
-  let ex1 = pkg_dir </> "test" </> "test-cases" </> "GithubIssue9.hs"
+  let ex1 = "test" </> "test-cases" </> "GithubIssue9.hs"
+
   Ghc.runGhc (Just libdir) $ do
     dflags0 <- Ghc.getSessionDynFlags
     let dflags = dflags0
diff --git a/test/test-cases/GithubIssue9.hs b/test/test-cases/GithubIssue9.hs
new file mode 100644
--- /dev/null
+++ b/test/test-cases/GithubIssue9.hs
@@ -0,0 +1,7 @@
+{-# LANGUAGE TemplateHaskell #-}
+module GithubIssue9 where
+
+import Language.Haskell.TH
+
+foo :: Q Exp
+foo = [| \f -> f 2 |]
