-
Notifications
You must be signed in to change notification settings - Fork 146
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
imperative statement (not BVI context) on PreludeBSV.bo #20
Comments
/build/source/inst/bin/bsc -stdlib-names -bdir /build/source/build/bsvlib -p . -vsearch /build/source/build/bsvlib -no-use-prelude PreludeBSV.bsv
/build/source/inst/bin/bsc -stdlib-names -bdir /build/source/build/bsvlib -p . -vsearch /build/source/build/bsvlib -no-use-prelude PreludeBSV.bsv
is failing
/build/source/inst/bin/bsc -stdlib-names -bdir /build/source/build/bsvlib -p . -vsearch /build/source/build/bsvlib -no-use-prelude PreludeBSV.bsv
is failing
FYI, I managed to get past that failure with GCC 7.5.0 and GHC 8.0.2 and pushed my current WIP to my bluespec-bsc nixpkgs branch. Note GHC 8.0.2 is way out of support, see #16 (comment) Whoever is interested, I joined the |
I'm able to trigger this with GHC 8.6.5 as well, with 8.4.4 it seemed to still work. |
Lines 239 to 249 in a82d720
Which seems to be have been written intending to take care of the transitioning regarding bsc/src/comp/Parser/BSV/CVParser.lhs Line 2815 in 03af17e
(Edit: took out large parts of this comment because apparently I found outdated information)
These instances should be written like shown in this migration guide instead: https://gitlab.haskell.org/ghc/ghc/wikis/proposal/monad-fail#adapting-old-code After I test everything I can write a pull request. |
Ah, thank you! This makes sense. I added these conditionals recently, and tested that it compiled on various 8.x versions, but I didn't have working installations so I hadn't tested that it ran properly. (Both Debian10 and MacPorts on Catalina have issues with GHC that I hadn't gotten past.) I've installed GHC 8.6.5 on Ubuntu 16.04 (xenial) and confirmed that the repo builds and checks, so I'll commit these changes. Thanks! |
Fix Monad instances affected by MonadFail, fix #20
Extend the #if around fail in Monad to include 8.6 (< 806 -> < 808). This way, everyone is happy: - For 8.6 or earlier, Prelude.fail is Monad.fail, which goes to the custom function (8.6 would get errorWithoutStackTrace otherwise) - For 8.8 or later, Prelude.fail is MonadFail.fail, which also goes to the custom function. - Also, there is no fail in Monad in 8.8+, so the #if removes it.
Fix Monad instances affected by MonadFail, fix B-Lang-org#20
I'm getting a bsc
error when building
11f9a729fe5bb301f0899d3497e79e004a047e37
patched with https://patch-diff.githubusercontent.com/raw/B-Lang-org/bsc/pull/18.patch on NixOSFull Log
Reproduction
nix-build -A bluespec-bsc
The text was updated successfully, but these errors were encountered: