-
Notifications
You must be signed in to change notification settings - Fork 85
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
version 2.1: unrecognised directive: %errorhandlertype #320
Comments
Its removal is not in the changelog, so I'd assume it was unintentional. #318 is likely the culprit. |
https://github.com/haskell/happy/pull/318/files#diff-afd5c13988aad40ea499045febecb363cc647906c5241ae478543521d39b5daa OK that test update looks it is the culprit CC @sgraf812 you mentioned changing an undocumented thing, but this is different? |
Thanks for the bug report and sorry for inflicting it upon you on a Friday! I deprecated 2.1. I was not aware that the old I had thought I could simply bring back the old flag in a backwards compatible way, but the feature was implemented weirdly enough that this is not as simple to achieve. I'm inclined to bump the version of happy to 3.0 and emit a warning that |
The description of I imagine that I think this would be much better, because we'd remain somewhat backward compatible, even if the new behavior is a bit different somehow. And, if it is, then the docs should emphasize the difference to the old behavior, at least for a little while, until the old behavior is far enough in the past that is unlikely ti be used. |
Indeed, I intended to fix a few things in the implementation of
Neither issue would require a backwards incompatible change. However, the main problem (and the reason for the incompatibility) is that However I can see that backwards compatibility is an important virtue. Perhaps I can try to mimic the old behavior when Will try something on Monday. |
I managed to bring back |
Just as an extra sample point, this broke our builds as well here. We also used We've tried to fix it but currently there seems to be instability based on published builds, and now
|
@jmcardon Thanks for the feedback. It's good to know that people seem to actually use the Can you try again with the following diff to your cabal.project? (Perhaps you also need to relax the upper bound on diff --git a/cabal.project b/cabal.project
index 565e3d93..65c7df21 100644
--- a/cabal.project
+++ b/cabal.project
@@ -1,4 +1,7 @@
-packages: .
+packages:
+ .
+ http://hackage.haskell.org/package/happy-lib-2.1.1/candidate/happy-lib-2.1.1.tar.gz
+ http://hackage.haskell.org/package/happy-2.1.1/candidate/happy-2.1.1.tar.gz
package pact-tng
-- When running Template Haskell, GHC sees that some code it loads has dependent modules I'll hold back with the 2.1.1 release until tomorrow or until you can confirm to me that it works. |
@sgraf812 I added the upper bound due to the build errors. After relaxing the upper bound and changing our |
Great. I just released 2.1.1. Be sure to check out the new |
`happy-2.1.1` includes a fix for haskell/happy#320, which was preventing `language-rust` from building. Now that this version of `happy` is on Hackage, we no longer need to include such a restrictive upper version bound on `happy`.
It appears that as of version 2.1
happy
reports:This directive is still in the docs, so if it is removed indeed, it'd be nice to update the docs to say what changed, and what to do instead.
The text was updated successfully, but these errors were encountered: