
10 Oct
2006
10 Oct
'06
4:34 p.m.
Anatoly,
I have a simple fftw wrapper which c2hs builds into a .hs file, but when i try to use it i get an error:
$ ghc -v --make -fffi Main.hs Glasgow Haskell Compiler, Version 6.4.2, for Haskell 98, compiled by GHC version 6.4.2 Using package config file: /usr/lib/ghc-6.4.2/package.conf Hsc static flags: -static *** Chasing dependencies: Chasing modules from: Main.hs *** Deleting temp files Deleting:
Fftw.chs:2:0: parse error on input `import'
here is my Fftw.chs: module Fftw (fftwNew, fftwDestroy, fftwExecute)
You need to add the keyword "where" after the export list. (This is really a Haskell error and nothing to do with c2hs).
import C2HS [..]
Manuel