[Haskell-cafe] FunPtr error?

Galchin, Vasili vigalchin at gmail.com
Tue Jun 10 00:32:15 EDT 2008


Thanks Judah ... getting closer now.

Vasili

On Mon, Jun 9, 2008 at 11:25 PM, Judah Jacobson <judah.jacobson at gmail.com>
wrote:

> 2008/6/9 Galchin, Vasili <vigalchin at gmail.com>:
> > Ryan,
> >
> >      I tried but the compiler didn't seem to like the keyword "import":
> >
> > vigalchin at ubuntu:~/FTP/Haskell/unix-2.2.0.0/tests/timer$ runhaskell
> > Setup.lhs build
> > Preprocessing executables for Test-1.0...
> > Building Test-1.0...
> > [1 of 1] Compiling Main             ( ./timer.hs,
> > dist/build/timer/timer-tmp/Main.o )
> >
> > ./timer.hs:29:8: parse error on input `import'
> >
>
> Hi Vasili,
>
> To fix that error, you probably just need to add the line "Extensions:
> ForeignFunctionInterface" to the .cabal file.   (That is the
> equivalent of calling ghc by itself with the command-line arguments
> -fffi or -XForeignFunctionInterface.)
>
> Hope that helps,
> -Judah
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080609/bb409494/attachment.htm


More information about the Haskell-Cafe mailing list