summaryrefslogtreecommitdiff
path: root/ffi/barmain.hs
diff options
context:
space:
mode:
Diffstat (limited to 'ffi/barmain.hs')
-rw-r--r--ffi/barmain.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/ffi/barmain.hs b/ffi/barmain.hs
new file mode 100644
index 0000000..07e81ae
--- /dev/null
+++ b/ffi/barmain.hs
@@ -0,0 +1,6 @@
+foreign import ccall "exp" c_exp :: Double -> Double
+foreign import ccall "bar" c_bar :: Double -> Double
+
+main = do
+ print $ c_exp 2
+ print $ c_bar 2