about summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/examples/rts/One.hs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/bazel/rules_haskell/examples/rts/One.hs')
-rw-r--r--third_party/bazel/rules_haskell/examples/rts/One.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/bazel/rules_haskell/examples/rts/One.hs b/third_party/bazel/rules_haskell/examples/rts/One.hs
new file mode 100644
index 0000000000..bc24fb7cb2
--- /dev/null
+++ b/third_party/bazel/rules_haskell/examples/rts/One.hs
@@ -0,0 +1,6 @@
+module One () where
+
+add_one_hs :: Int -> Int
+add_one_hs x = x + 1
+
+foreign export ccall add_one_hs :: Int -> Int