summaryrefslogtreecommitdiff
path: root/rusty-haskell/haskell/src/FLib.hs
diff options
context:
space:
mode:
Diffstat (limited to 'rusty-haskell/haskell/src/FLib.hs')
-rw-r--r--rusty-haskell/haskell/src/FLib.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/rusty-haskell/haskell/src/FLib.hs b/rusty-haskell/haskell/src/FLib.hs
new file mode 100644
index 0000000..7fc1d61
--- /dev/null
+++ b/rusty-haskell/haskell/src/FLib.hs
@@ -0,0 +1,8 @@
+module FLib where
+
+import Foreign.C.Types
+import Foreign.C.String
+
+foreign import ccall "double_input" doubleInput :: CInt -> CInt
+--foreign import ccall unsafe "print_string" printString :: CString -> IO ()
+foreign import ccall "print_hello" printHello :: IO ()