problems exporting haskell functions

3 Sep
2001
3 Sep
'01
6:47 a.m.
Hello, I have tried to export haskell functions, but I haven't been able to compile anything and obtain a executable file. My program has two parts.
- Haskell part:
module Hex where
fh :: Int -> Int
foreign export "f" fh :: Int -> Int
fh x = 7
- C part:
#include
8661
Age (days ago)
8661
Last active (days ago)
0 comments
1 participants
participants (1)
-
Juan Ignacio Garcia Garcia