diff --git a/Setup.hs b/Setup.hs
new file mode 100644
--- /dev/null
+++ b/Setup.hs
@@ -0,0 +1,2 @@
+import Distribution.Simple
+main = defaultMain
diff --git a/inline-c-cpp.cabal b/inline-c-cpp.cabal
--- a/inline-c-cpp.cabal
+++ b/inline-c-cpp.cabal
@@ -1,6 +1,5 @@
-cabal-version:       2.2
 name:                inline-c-cpp
-version:             0.4.0.1
+version:             0.4.0.2
 synopsis:            Lets you embed C++ code into Haskell.
 description:         Utilities to inline C++ code into Haskell using inline-c.  See
                      tests for example on how to build.
@@ -12,6 +11,8 @@
 category:            FFI
 tested-with:         GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5
 build-type:          Simple
+cabal-version:       >=1.10
+extra-source-files:  test/*.h
 
 source-repository head
   type:     git
diff --git a/test/test.h b/test/test.h
new file mode 100644
--- /dev/null
+++ b/test/test.h
@@ -0,0 +1,8 @@
+namespace Test {
+	class Test {
+	public:
+		Test() {}
+		int get () {return 3;}
+	};
+};
+;
diff --git a/test/tests.hs b/test/tests.hs
--- a/test/tests.hs
+++ b/test/tests.hs
@@ -28,6 +28,7 @@
 import qualified Test.Hspec as Hspec
 import           Foreign.Ptr (Ptr)
 import           Data.List (isInfixOf)
+import           Data.Monoid
 
 data Test
 data Vector a
