1 2 3 4 5 6 7 8 9 10 11
{-# LANGUAGE ForeignFunctionInterface #-} module T3807Export where import Foreign.C foo :: IO CInt foo = return (3 + read "123") foreign export ccall foo :: IO CInt