-
Notifications
You must be signed in to change notification settings - Fork 138
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
Could not find module ‘LiquidHaskellBoot’ #2261
Comments
Thanks @jwaldmann. I'm moving here a comment from #2258. It is looking like a bug in Cabal (the library) too. Running As far as I can see, the It looks a lot like this issue: haskell/cabal#9375, and I don't think cabal 3.10.2.1 includes the fix.
|
I just merged a workaround in 5fbff05. Although it goes with the switch to ghc-9.8.1. It wouldn't be difficult to backport if it needs to work in an earlier compiler. Please, let me know if this doesn't fix it. |
Thanks for working on this. For commit 5fbff05 , I am trying
and
|
|
Now,
And
Yay! I guess? But then -
I am able to load this package in ghci (I think)
|
The
It is unclear to me what you are trying to accomplish. Testing Liquid Haskell entails writing a cabal package that uses the plugin. Like here. If you don't want to write a cabal package, then this might work:
Or installing
Or just run some of the automated tests
|
running (and then perhaps modifying) a minimal liquidhaskell example to see (and show to my students, lecture "constraint programming") how SMT is used for software analysis (#2259) As for running, this seems fine now:
A crude way of running z3 on the generated constraint:
if confirms what's in the file ("SMT Says Unsat", "SMT Says Sat"). I do get lots of failures, e.g., Illegal type specification for |
If "this" means running ghc with the plugin directly on source files instead of using cabal or stack, it is likely to fail for reasons other than bugs in Liquid Haskell. But we can analyse some of the failures if you really need to run ghc directly and understanding the failures is helpful. |
"need" ... it seems like the most direct thing to do. By analogy - if I want to demonstrate (in a lecture) some Hindley/Milner types, I start ghci. If I want to demonstrate some refinement types, I start ... ghc with the plugin? Writing a cabal file is not the first thing that comes to mind.
Thanks. I will submit one or two, then you could perhaps indicate what's happening |
I cannot reproduce either of those failures. Verification passes fine for me. Which hints at differences in the installation or the environment. Do they fail as well if you run ghc with stack:
? |
yes, works via stack. I updated and closed the two issues. Thanks. |
I'm closing this as I think all questions have been addressed. @jwaldmann, please, let me know if I dropped anything, and feel free to open more issues. |
(see #2258 )
using a project-specific environment file, I still get
I guess the env file is not used by the plugin.
with stack, same thing:
The text was updated successfully, but these errors were encountered: