Re: [solved] Re: [Haskell-cafe] c2hs and cabal?

2006-11-29 Thread Magnus Therning
On Wed, Nov 29, 2006 at 03:38:24 +, Duncan Coutts wrote: On Tue, 2006-11-28 at 17:24 +, Magnus Therning wrote: On Tue, Nov 28, 2006 at 12:00:50 +, Magnus Therning wrote: [..] Can't really see anything obviously bogus about the following: % cat Foo.chs module Foo where

Re: [solved] Re: [Haskell-cafe] c2hs and cabal?

2006-11-29 Thread Duncan Coutts
On Wed, 2006-11-29 at 11:26 +, Magnus Therning wrote: Or the simpler way is to include in your .cabal file: extensions: ForeignFunctionInterface That then applies to every module in the lib and has the advantage of being portable between compilers. Ah, good point. Now, where

Re: [solved] Re: [Haskell-cafe] c2hs and cabal?

2006-11-29 Thread Ross Paterson
On Wed, Nov 29, 2006 at 01:12:50PM +, Duncan Coutts wrote: http://www.haskell.org/cabal/release/latest/doc/users-guide/x30.html#buildinfo Section 2.1.4, though I do notice that the link to the full list of extensions is broken. This version works (and looks better too):

[solved] Re: [Haskell-cafe] c2hs and cabal?

2006-11-28 Thread Magnus Therning
On Tue, Nov 28, 2006 at 12:00:50 +, Magnus Therning wrote: [..] Can't really see anything obviously bogus about the following: % cat Foo.chs module Foo where #include foo.h fooOne i = {# call foo1 #} i I solved my problem, but thought I'd send a mail to the list for anyone who's

Re: [solved] Re: [Haskell-cafe] c2hs and cabal?

2006-11-28 Thread Duncan Coutts
On Tue, 2006-11-28 at 17:24 +, Magnus Therning wrote: On Tue, Nov 28, 2006 at 12:00:50 +, Magnus Therning wrote: [..] Can't really see anything obviously bogus about the following: % cat Foo.chs module Foo where #include foo.h fooOne i = {# call foo1 #} i I solved