[Haskell-cafe] what happened to alexAndPred?

Johannes Waldmann waldmann at imn.htwk-leipzig.de
Tue Apr 23 23:59:19 CEST 2013


Hi. I have ghc-7.6.3 and alex-3.0.5.
When I build https://github.com/jwaldmann/smt-lib
it breaks with Language/SMTLIB/Lexer.x:6:5: Not in scope: `alexAndPred'.
It was working with alex-2.3.5.

I was going t add "Can I constrain the alex version in the 
cabal file (I recall this is difficult for executables since
they're not registered with ghc)" but it wouldn't help since
alex-2.3.5 cannot be built with a recent ghc-7.6 
because Module `System.IO.Error' does not export `try'.
Also, not with ghc-7.4.2 because of
dist/build/alex/alex-tmp/Scan.hs:344:17:
    Illegal bang-pattern (use -XBangPatterns):
And not with <= ghc-7.2 because of
Linking /tmp/alex-2.3.5-20331/alex-2.3.5/dist/setup/setup ...
unrecognized option `--disable-benchmarks'






More information about the Haskell-Cafe mailing list