-
Notifications
You must be signed in to change notification settings - Fork 47
lexer does not work with GHC 7.8 #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I do not have GHC 7.8 installed, I have just pushed a new version to branch new-alex. Can you check that it compiles before I release an updated language-javascript? |
@alanz, I can check if you'll explain me what to do. |
Oh I might've been wrong about the actual file causing the problem, although re-generating the lexer with the latest alex probably doesn't hurt. It looks like the actual problem is the To fix this, install happy 1.19.3 before generating the sdist. To see if your sdist is ok, check |
I just rebuilt it with happy 1.19.3 (had been using 1.19.2) and GHC 7.6.3, I have not got around to setting up a GHC 7.8 environment yet, so I cannot Alan On Sun, Feb 23, 2014 at 5:22 PM, Luite Stegeman [email protected]:
|
Yeah it works here with happy 1.19.3, but I can't test it in the git repository since it doesn't contain the |
This issue breaks the builds in NixOS as well: http://hydra.cryp.to/build/44774/nixlog/2/raw. The setup of this package seems really weird. Why is the alex-generated lexer not registered in the Cabal build? It seems really wrong to distribute a generated file -- src/Language/JavaScript/Parser/Lexer.hs -- outside of the |
I was requested to do that because the lexer required a specific version of See #19 Looking back I see the request originated with you :) Alan On Thu, Mar 27, 2014 at 11:17 PM, Peter Simons [email protected]:
|
…o fix the build with GHC 7.8.1 erikd/language-javascript#26
I'm not sure what you mean. Why do you say the request originated with me? |
@alanz Would it be possible to release this to Hackage? |
Just to confirm, we are looking at going back to the original way, where On Mon, Apr 7, 2014 at 8:18 AM, Michael Snoyman [email protected]:
|
I hadn't formed an opinion on that issue tbh. I just was hoping to see a version of language-javascript on Hackage that compiles with GHC 7.8, so that Stackage and Yesod can be built. |
ok, I think it is the same thing. I will sort it out this morning On Mon, Apr 7, 2014 at 8:23 AM, Michael Snoyman [email protected]:
|
Version 0.5.11 is on hackage, it now runs alex as part of the install process, and the builds pass on travis for GHC 7.4, 7.6 and 7.8 |
Thanks! |
Unfortunately, the new version does not declare 'alex' as a required BuildTool in its Cabal file. :-( |
Please show me how to do that, I tried before (some time ago) and could not On Mon, Apr 7, 2014 at 12:40 PM, Peter Simons [email protected]:
|
Version 0.5.12 is on hackage for this On Mon, Apr 7, 2014 at 12:42 PM, AlanKim Zimmerman [email protected]:
|
With GHC 7.8.2 and alex 3.0.5, the error above still occurs. If you upgrade alex but still have eg happy 1.18.10, you get a new error:
With alex 3.1.3 and happy 1.19.3, it worked for me. The package should specify the required newer versions. |
Ok, I will only be able to get to this tomorrow some time On Thu, Apr 17, 2014 at 4:41 PM, Simon Michael [email protected]:
|
I just ran into this too, upgrading alex and happy solved it. |
The pregenerated lexer in the 0.5.9 package does not work with GHC 7.8.1rc1. Can you release an update with an updated lexer (from a newer alex)?
cabal install language-javascript
gives this result:while cleaning the package first, forcing it to rebuild the lexer, does install:
It should work if you rebuild the included parser with alex 3.1.3
The text was updated successfully, but these errors were encountered: