H/Direct (HaskellDirect) still maintained?
Hallo! Does anybody know if H/Direct (also known as HaskellDirect) is still maintained? I tried to get it working but although the homepage states "The sources compiles out of the box with recent versions of GHC, such as ghc-6.2." I could not compile it on windows. Can anyone give me some hints how to get it to compile? Or any other advice? Thanks, Andreas PS: For what I acomplished and where I am stuck: First task is do "make boot" I got MSYS (mingw) so I could do make I got happy so make could use happy I added "C:\ghc\ghc-6.4" and "C:\ghc\ghc-6.4\gcc-lib" to my PATH (in addition to "C:\ghc\ghc-6.4" of course) to let make find perl and gcc I get the error: gcc -c mkNativeInfo.c -o mkNativeInfo.o mkNativeInfo.c:6:19: no include path in which to find stdio.h make [1]: *** [mkNativeInfo.o] Error 1 make: *** Error 1 so I added "C:\ghc\ghc-6.4\include\mingw" where stdio.h is situated but got no further. So here I am stuck. Any hints?
2006/9/6, Andreas Marth <Andreas-Haskell@gmx.net>:
Hallo!
Does anybody know if H/Direct (also known as HaskellDirect) is still maintained?
Doesn't seem to be... You might want to look for thread "Haskell to call Microsoft COM (Dispatch)" in haskell-cafe archive. Marc Weber was able to create a script that compiled HDirect and it worked for me. Then I moved onto other things and don't know how to compile it now :( -- Gracjan
Gracjan Polak wrote:
2006/9/6, Andreas Marth <Andreas-Haskell@gmx.net>:
Hallo!
Does anybody know if H/Direct (also known as HaskellDirect) is still maintained?
Doesn't seem to be...
You might want to look for thread "Haskell to call Microsoft COM (Dispatch)" in haskell-cafe archive. Marc Weber was able to create a script that compiled HDirect and it worked for me. Then I moved onto other things and don't know how to compile it now :(
You might want to look at http://darcs.haskell.org/vshaskell/comlib/ this is a derivative of the comlib that comes with H/Direct. It's the one we're using in Visual Haskell for calling COM. We're doing much of our COM interaction manually via comlib now, because we reached the limits of what H/Direct was able to cope with in various ways. Also you should find that the version of comlib above compiles out of the box with recent GHC versions. Cheers, Simon
----- Original Message ----- From: "Simon Marlow" <simonmarhaskell@gmail.com> To: "Gracjan Polak" <gracjanpolak@gmail.com> Cc: <haskell@haskell.org> Sent: Thursday, September 07, 2006 5:46 PM Subject: [Haskell] Re: H/Direct (HaskellDirect) still maintained? ...
You might want to look at
http://darcs.haskell.org/vshaskell/comlib/
this is a derivative of the comlib that comes with H/Direct. It's the one we're using in Visual Haskell for calling COM. We're doing much of our COM interaction manually via comlib now, because we reached the limits of what H/Direct was able to cope with in various ways. Also you should find that the version of comlib above compiles out of the box with recent GHC versions.
Cheers, Simon
The question then arises what is a recent GHC version. I have ghc-6.4.2 installed and when I do a "runghc Setup.lhs configure" I get lots of unknown field errors. I guess the comlib depends on a newer version of cabal than 1.0? Thanks for the pointer. I'll try to get it running. Andreas
Andreas Marth wrote:
The question then arises what is a recent GHC version. I have ghc-6.4.2 installed and when I do a "runghc Setup.lhs configure" I get lots of unknown field errors. I guess the comlib depends on a newer version of cabal than 1.0?
Ah yes, you probably need to upgrade Cabal. Cheers, Simon
Now that I used a more recent ghc (6.4.2 which has cabal-1.1.4 installed) I did install comlib with it. But I am a bit surprised because it did not generate a ihc. So how do I get a Proxy from an idl-file now? If I look at the files in vsHaskell they state "Automatically generated by HaskellDirect (ihc.exe) ....". Does anybody know how to generate ihc.exe? Thanks for any pointers and a nice weekend to all, Andreas
participants (3)
-
Andreas Marth -
Gracjan Polak -
Simon Marlow