[Haskell-cafe] c2hs on mac

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Thu Apr 12 06:30:42 EDT 2007


On Thu, 2007-04-12 at 18:55 +1000, Ruben Zilibowitz wrote:
> Ok I managed to check out a version from darcs. Now this is happening:
> ./Setup.hs build
> Preprocessing executables for c2hs-0.14.6...
> Setup.hs: c2hs/c/CLexer.x: no alex preprocessor available
> 
> The installation instructions don't mention that I need the alex  
> package.

The tarball versions come with pre-generated lexer and parser files but
the darcs version does not.

> I guess I can just install it and try again. Are there any other
> prerequisites though?

Yes, you also need 'happy' the parser generator.
http://haskell.org/happy/

Duncan



More information about the Haskell-Cafe mailing list