> In 7.4 we merge the stub object file into the main object file
> automatically, so you don't have to worry about stub objects in your
> Makefiles or whatever.
Nice, this is very convenient.
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@
On 24/12/2011 06:23, Evan Laforge wrote:
I've noticed a strange behaviour with ghc's -osuf flag:
% cat>Test.hs
{-# LANGUAGE ForeignFunctionInterface #-}
module Test where
import Foreign
foreign import ccall "wrapper" c_callback :: Int -> IO (FunPtr Int)
% ghc-7.0.3 -v -c -osuf .hs.o Test.hs
% l
I've noticed a strange behaviour with ghc's -osuf flag:
% cat >Test.hs
{-# LANGUAGE ForeignFunctionInterface #-}
module Test where
import Foreign
foreign import ccall "wrapper" c_callback :: Int -> IO (FunPtr Int)
% ghc-7.0.3 -v -c -osuf .hs.o Test.hs
% ls
Tes_stub.hs.o Test.hsTest_stub.c