Haskell.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview
thread

ffi

Martin Huschenbett

11 Dec 2002 11 Dec '02
12:24 p.m.

Hi all, I've got a simple question concerning FFI but as I am a newbie I don't know the answet. I've got a C-source-file, maybe something like: //cfile.c void cfun() { /* ... do something ... */ } //EOF and a Haskell-source-File, maybe something like: -- Main.hs module Main where main :: IO () main = do -- do something cfun -- I wan't to call the function written in C here -- do again something -- EOF And now my question is: How do i realize this? Can you please tell me how write a binding and how tu run ghc. Thank you very much, Martin.

0 0
Reply
Sign in to reply online Use email software

Back to the thread

Back to the list

HyperKitty Powered by HyperKitty version 1.3.9.