hi, there,
    can someone check what's wrong with the following code?
as well, do i need to tell ghc to look for libcdata.so under /usr/local/lib
 
source:
-------------
module Main where

foreign import "cdata" "ghc_cd_int_init" cd_int_init :: Int32 -> ForeignPtr

main = do
    c <-ghc_int_init(23)
 
compiling error
--------------------
ghc --make Main.hs -o test -package data  -ltermcap
ghc-5.00.2: chasing modules from: Main.hs
Compiling Main             ( Main.hs, ./Main.o )
Main.hs:3: parse error on input `import'


Get your FREE download of MSN Explorer at http://explorer.msn.com