Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-14 Thread Colin Paul Adams
Colin == Colin Paul Adams [EMAIL PROTECTED] writes: Colin And thanks everyone for your help. I have enough to go on Colin now. I followed the example at http://www.haskell.org/haskellwiki/Calling_Haskell_from_C (and renamed the files from A* to fib1*, as I want to pursue this further).

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-14 Thread Don Stewart
colin: Colin == Colin Paul Adams [EMAIL PROTECTED] writes: Colin And thanks everyone for your help. I have enough to go on Colin now. I followed the example at http://www.haskell.org/haskellwiki/Calling_Haskell_from_C (and renamed the files from A* to fib1*, as I want to

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-14 Thread Colin Paul Adams
Don == Don Stewart [EMAIL PROTECTED] writes: Don Not linking in the 'Safe' module on the command line? Could be - I don't know any of this stuff. I was just following the instructions on the wiki page. How should these be amended? -- Colin Adams Preston Lancashire

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-14 Thread Colin Paul Adams
Colin == Colin Paul Adams [EMAIL PROTECTED] writes: Don == Don Stewart [EMAIL PROTECTED] writes: Don Not linking in the 'Safe' module on the command line? Colin Could be - I don't know any of this stuff. I was just Colin following the instructions on the wiki page. Got it working

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-12 Thread Dave Tapley
Hi Colin As an alternative you may consider using Thrift: http://incubator.apache.org/thrift/ Cheers, Dave On Tue, 2008-11-11 at 16:45 +, Colin Paul Adams wrote: Is there a way to call Haskell code from other languages? I have looked on the wiki, and as far as I can see, it only talks

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Jake Mcarthur
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Nov 11, 2008, at 10:45 AM, Colin Paul Adams wrote: Is there a way to call Haskell code from other languages? I have looked on the wiki, and as far as I can see, it only talks about the other way round (when Haskell is the main program).

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Donn Cave
Quoth Colin Paul Adams [EMAIL PROTECTED]: | Is there a way to call Haskell code from other languages? I have looked on | the wiki, and as far as I can see, it only talks about the other way | round (when Haskell is the main program). There sure is a way to call from other languages - cf. foreign

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Derek Elkins
On Tue, 2008-11-11 at 17:09 +, Colin Paul Adams wrote: Jake == Jake Mcarthur [EMAIL PROTECTED] writes: Jake Actually, that's not the whole story. I didn't realize until Jake I sent it. There does exist good documentation for this, I Jake promise. Good. Let me know where

Re[2]: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Bulat Ziganshin
Hello Colin, Tuesday, November 11, 2008, 8:09:09 PM, you wrote: If I want to call Haskell (and I do, perhaps) from another garbage-collected language (Eiffel, in particular) using C as the mutually understood language, am I not going to run into big problems? of course not. there will be two

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread John Goerzen
On Tue, Nov 11, 2008 at 12:35:05PM -0600, Derek Elkins wrote: On Tue, 2008-11-11 at 17:09 +, Colin Paul Adams wrote: Jake == Jake Mcarthur [EMAIL PROTECTED] writes: Jake Actually, that's not the whole story. I didn't realize until Jake I sent it. There does exist good

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Don Stewart
colin: Is there a way to call Haskell code from other languages? I have looked on the wiki, and as far as I can see, it only talks about the other way round (when Haskell is the main program). http://haskell.org/haskellwiki/Calling_Haskell_from_C Cheers, Don

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Don Stewart
colin: Jake == Jake Mcarthur [EMAIL PROTECTED] writes: Jake Actually, that's not the whole story. I didn't realize until Jake I sent it. There does exist good documentation for this, I Jake promise. Good. Let me know where it is when you track it down. The link you pointed

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Colin Paul Adams
John == John Goerzen [EMAIL PROTECTED] writes: Read the FFI Report. It is relatively readable and comprehensive. http://www.cse.unsw.edu.au/~chak/haskell/ffi/ And yes, you will have to use C as an intermediary, though you may not have to actually write any C. You

[Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Colin Paul Adams
Is there a way to call Haskell code from other languages? I have looked on the wiki, and as far as I can see, it only talks about the other way round (when Haskell is the main program). -- Colin Adams Preston Lancashire ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Colin Paul Adams
Jake == Jake Mcarthur [EMAIL PROTECTED] writes: Jake Actually, that's not the whole story. I didn't realize until Jake I sent it. There does exist good documentation for this, I Jake promise. Good. Let me know where it is when you track it down. The link you pointed me too doesn't

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Jake Mcarthur
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Actually, that's not the whole story. I didn't realize until I sent it. There does exist good documentation for this, I promise. - - Jake -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (Darwin)

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Fraser Wilson
I had a proof of concept lying around a couple of years ago in which a big complicated Ada program called a big complicated Haskell program and vice versa. The tricky bit from memory was making it link, and satisfying their rumtime initialisation requirements. No explicit C was required