inline-c-cpp 0.4.0.1 → 0.4.0.2
raw patch · 4 files changed
+14/−2 lines, 4 filessetup-changed
Files
- Setup.hs +2/−0
- inline-c-cpp.cabal +3/−2
- test/test.h +8/−0
- test/tests.hs +1/−0
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
inline-c-cpp.cabal view
@@ -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
+ test/test.h view
@@ -0,0 +1,8 @@+namespace Test {+ class Test {+ public:+ Test() {}+ int get () {return 3;}+ };+};+;
test/tests.hs view
@@ -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