[Haskell] Problems compiling hs-plugins
Donald Bruce Stewart
dons at cse.unsw.edu.au
Fri Mar 3 21:32:04 EST 2006
> Please, can anyone help me with this problem:
> I just downloaded hs-plugins version 1.0-rc0. (BTW, the stable version
> is not accessible). I configure it (according to the README) and
> everything seems to be ok. However when I try to build it, I get:
> aare: .../haskell/hs-plugins > ./Setup.lhs build
> Setup.lhs: Warning: The field "hs-source-dir" is deprecated, please use
> Preprocessing library plugins-1.0...
> Building plugins-1.0...
> Chasing modules from:
> [ 1 of 24] Compiling AltData.Typeable ( src/AltData/Typeable.hs,
> dist/build/AltData/Typeable.o )
> parse error (possibly incorrect indentation)
> Looking at the source reveals that src/AltData/Typeable.hs contains
> macro calls to generate instances for class Typeable<N>, e.g.
> However, I could not find any definition for these macros. Nor does the
> package docs mention what to install in order to get them.
> Any ideas? Don?
Thanks for noticing the missing stable release. Looks like the network
guys tweaked something without telling me. This will get fixed soon.
This Typeable macro issue is due to the Typeable.h header, which used to
be distributed with GHC. It's not distributed with the GHC head anymore
-- are you using ghc 6.5?
You can work around it by copying Typeable.h from the darcs repository
into the include/ directory of your ghc distribution, or using ghc 6.4.x
In the longer term, I'll either distribute my own Typeable.h, or
actually fix the underlying problem with typeables and dynamic linking
that requires this stuff in the first place.
Thanks for the note.
More information about the Haskell