about summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/tests/indirect-link/src/MyModule.hs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/bazel/rules_haskell/tests/indirect-link/src/MyModule.hs')
-rw-r--r--third_party/bazel/rules_haskell/tests/indirect-link/src/MyModule.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/third_party/bazel/rules_haskell/tests/indirect-link/src/MyModule.hs b/third_party/bazel/rules_haskell/tests/indirect-link/src/MyModule.hs
new file mode 100644
index 0000000000..4b75cee139
--- /dev/null
+++ b/third_party/bazel/rules_haskell/tests/indirect-link/src/MyModule.hs
@@ -0,0 +1,11 @@
+module MyModule where
+
+foreign import ccall get_thing :: IO Int
+
+getThing :: IO Int
+getThing = get_thing
+
+foreign import ccall set_thing :: Int -> IO ()
+
+setThing :: Int -> IO ()
+setThing = set_thing