
Hello, In testing my packages for the impending GHC 7.8 release, I ran into some issues with Alex-generated code. In particular, it looks like the (>=#) and (==#) operators now return Int# instead of Bool, so expressions like if (offset >=# 0#) && (check ==# ord_c) then ... no longer type check. Is this a known issue? Are there any plans to fix it? I'd offer to submit a pull-request, but I'm not familiar with the Alex codebase so that'd take a while -- Live well, ~wren

you need to use the new versions of alex and happy
cabal update ; cabal install alex happy
On Fri, Mar 7, 2014 at 11:03 PM, wren ng thornton
Hello,
In testing my packages for the impending GHC 7.8 release, I ran into some issues with Alex-generated code. In particular, it looks like the (>=#) and (==#) operators now return Int# instead of Bool, so expressions like
if (offset >=# 0#) && (check ==# ord_c) then ...
no longer type check. Is this a known issue? Are there any plans to fix it? I'd offer to submit a pull-request, but I'm not familiar with the Alex codebase so that'd take a while
-- Live well, ~wren _______________________________________________ Libraries mailing list Libraries@haskell.org http://www.haskell.org/mailman/listinfo/libraries

On Fri, Mar 7, 2014 at 11:45 PM, wren ng thornton
On Fri, Mar 7, 2014 at 11:12 PM, Carter Schonwald
wrote: you need to use the new versions of alex and happy
cabal update ; cabal install alex happy
I have version 3.1.3 installed, but I still seem to be getting the same problem
Hmmm, working now. Seems like cabal wasn't picking up the right alex... -- Live well, ~wren

On Fri, 7 Mar 2014 23:46:48 -0500
wren ng thornton
On Fri, Mar 7, 2014 at 11:45 PM, wren ng thornton
wrote: On Fri, Mar 7, 2014 at 11:12 PM, Carter Schonwald
wrote: you need to use the new versions of alex and happy
cabal update ; cabal install alex happy
I have version 3.1.3 installed, but I still seem to be getting the same problem
Hmmm, working now. Seems like cabal wasn't picking up the right alex...
Or you were using already generated old lexer. -- Sergei

See http://ro-che.info/articles/2014-03-08-happy-alex-ghc-7.8.html
* wren ng thornton
Hello,
In testing my packages for the impending GHC 7.8 release, I ran into some issues with Alex-generated code. In particular, it looks like the (>=#) and (==#) operators now return Int# instead of Bool, so expressions like
if (offset >=# 0#) && (check ==# ord_c) then ...
no longer type check. Is this a known issue? Are there any plans to fix it? I'd offer to submit a pull-request, but I'm not familiar with the Alex codebase so that'd take a while
-- Live well, ~wren _______________________________________________ Libraries mailing list Libraries@haskell.org http://www.haskell.org/mailman/listinfo/libraries
participants (4)
-
Carter Schonwald
-
Roman Cheplyaka
-
Sergei Trofimovich
-
wren ng thornton