Re: Haskell module for SWIG
On Tue, Jun 29, 2004 at 06:03:17PM +0200, Gour wrote: I'd like to make Haskell bindings for some C library and I'm wondering if someone was/is thinking about writing Haskell support for SWIG or the present Haskell tools provide better route for such a task(s)? Although perhaps not the simplest way to go about your task, haskell support for SWIG would be great! it would immediatly give us access to A LOT of C/C++ libraries which already have swig bindings. targeting hsc would probably be best, as the portable hsc files could be distributed for those that don't have haskell-swig nativly installed. If anyone is looking for a random project, I recommend it. John -- John Meacham - repetae.netjohn ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: Haskell module for SWIG
John Meacham ([EMAIL PROTECTED]) wrote: Although perhaps not the simplest way to go about your task, haskell support for SWIG would be great! it would immediatly give us access to A LOT of C/C++ libraries which already have swig bindings. I also thinks so. Playing in the past with Ruby+SWIG looked very easy, but in the meantime I decided to try switch to Haskell :-) targeting hsc would probably be best, as the portable hsc files could be distributed for those that don't have haskell-swig nativly installed. If anyone is looking for a random project, I recommend it. I'd be happy if I could help more with the project, but at the moment just investigating if it would be feasible sicne I cannot estimate the level of difficulty in implemennting it. Sincerely, Gour -- Gour| [EMAIL PROTECTED] Registered Linux User | #278493 GPG Public Key | 8C44EDCD ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
How do I specify the source search path?
I have the working code for my Haskell App Server Framework in ~/HAppS/HAppS.hs. If I want to start working on an app that uses this framework in e.g. ~/MyApp, how do I tell GHCi to resolve import HAppS? Note: The HAppS code is in active development so I don't want to put it in the system GHC lib hierarchy. I just want to use it add hoc from the command line. -Alex- _ S. Alexander Jacobson mailto:[EMAIL PROTECTED] tel:917-770-6565 http://alexjacobson.com ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: How do I specify the source search path?
On Wednesday 30 June 2004 16:15, S. Alexander Jacobson wrote: I have the working code for my Haskell App Server Framework in ~/HAppS/HAppS.hs. If I want to start working on an app that uses this framework in e.g. ~/MyApp, how do I tell GHCi to resolve import HAppS? Note: The HAppS code is in active development so I don't want to put it in the system GHC lib hierarchy. I just want to use it add hoc from the command line. Using the -i flag. Unfortunatly relative paths (using '~') don't seem to work, so you have to type the full path: ghci -i/home/user/HAppS/ As far as I know, there is also no way to specify the search path in an environment var, so my solution was to add to my .alias: alias ghci='ghci -i/home/jadrian/Program/Haskell/MyLibs' alias ghc='ghc -i/home/jadrian/Program/Haskell/MyLibs' J.A. J.A. ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: How do I specify the source search path?
Jorge Adriano Aires wrote: Using the -i flag. Unfortunatly relative paths (using '~') don't seem to work, so you have to type the full path: ghci -i/home/user/HAppS/ right '~' is not expanded, but '-i../HApps:.' should work As far as I know, there is also no way to specify the search path in an environment var, so my solution was to add to my .alias: alias ghci='ghci -i/home/jadrian/Program/Haskell/MyLibs' alias ghc='ghc -i/home/jadrian/Program/Haskell/MyLibs' you can put :set -i/home/user/HAppS:... in your ~/.ghci file Christian ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: How do I specify the source search path?
On Wed, Jun 30, 2004 at 04:27:35PM +0100, Jorge Adriano Aires wrote: Using the -i flag. Unfortunatly relative paths (using '~') don't seem to work, so you have to type the full path: ghci -i/home/user/HAppS/ Thats because GHCi insists that there be no space between -i and the path, and shell tilde expansion won't work it such situation. -i$HOME/HAppS/ should work. Hint: you can put this in your .ghci :set -i/full/path/to/homedir/HAppS/ Best regards, Tom -- .signature: Too many levels of symbolic links ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users