-
Notifications
You must be signed in to change notification settings - Fork 8
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
Upgrade to Clash 1.8.1 #2
Comments
I'm glad you're liking the book so far! Annoyingly, because of commercialhaskell/stack#6251 , even though I've updated the code to compile with Clash 1.8.1, it is currently not usable with Stack with GHC 9.6. I'm leaving this ticket open until this situation resolves. |
Ah that one... I spent one entire day on it, and as a work around, I had to add the following 3 lines in my .cabal file (for some reason, latest clash starter project seems to use .cabal). You could perhaps add these same lines in the -package ghc-typelits-extra -package ghc-typelits-natnormalise -package ghc-typelits-knownnat In addition, you might want to also have these plugins registered with ghc. I had do the following steps too (as I am using docker based environment) First, find the package(s): stack exec -- ghc-pkg find-module GHC.TypeLits.Extra.Solver From the output, note the path where the packages are found, then register them: ghc-pkg -v register <package path>/ghc-tcplugins-extra-0.4.5-LoPBimuwmAgCj5M5ykKFtm.conf ghc-pkg -v register <package path>/ghc-typelits-natnormalise-0.7.9-2LocrQy3VVV7lBggmw970k.conf ghc-pkg -v register <package path>/ghc-typelits-knownnat-0.7.10-fJlMrMNkyh9qGWAkYZ6O6.conf ghc-pkg -v register <package path>/ghc-typelits-extra-0.4.6-L6c8cgcuJuRHcCyvlVGpAw.conf |
Hi,
I have purchased the retroclash book and finding it very useful. Although I am a beginner and this book is meant for experienced users, In the absence of any other book/material for beginners, This book and examples there in are invaluable to me.
I have setup a clash project with 1.8.1 (resolver lts-22.9), and I am trying to run a few samples from the retroclash-book-code repo. However, I am unable to run examples from that repo.
When I add retroclash-lib to the build-depends section of my project cabal file, I get the following error while building:
It would be helpful if this library and any other library used by the above repo could be upgraded to clash 1.8.1.
The text was updated successfully, but these errors were encountered: