From f723b8b878a3c4a4687b9e337a875500bebb39b1 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 4 Jul 2019 11:18:12 +0100 Subject: feat(third_party/bazel): Check in rules_haskell from Tweag --- third_party/bazel/rules_haskell/tests/cc_haskell_import/LibA.hs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 third_party/bazel/rules_haskell/tests/cc_haskell_import/LibA.hs (limited to 'third_party/bazel/rules_haskell/tests/cc_haskell_import/LibA.hs') diff --git a/third_party/bazel/rules_haskell/tests/cc_haskell_import/LibA.hs b/third_party/bazel/rules_haskell/tests/cc_haskell_import/LibA.hs new file mode 100644 index 000000000000..db8e442e5a5f --- /dev/null +++ b/third_party/bazel/rules_haskell/tests/cc_haskell_import/LibA.hs @@ -0,0 +1,8 @@ +module LibA (add_one) where + +import Data.Int (Int32) + +foreign import ccall "c_add_one" c_add_one' :: Int32 -> Int32 + +add_one :: Int32 -> Int32 +add_one x = c_add_one' x -- cgit 1.4.1