-
Notifications
You must be signed in to change notification settings - Fork 139
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
Specs not exported from preprocessed source code #2132
Comments
I can't reproduce in the latest version of LH from github. Also, the program needs to add a type signature for |
I'm not claiming that the code satisfies the spec, but I'm claiming that the spec is not made available to downstream modules. I can reproduce even with HEAD. See https://github.com/mboes/liquidhaskell-issue-2132. |
Liquid Haskell can't collect specs in .hsc files. See ucsd-progsys/liquidhaskell#2132
Liquid Haskell can't collect specs in .hsc files. See ucsd-progsys/liquidhaskell#2132
Liquid Haskell can't collect specs in .hsc files. See ucsd-progsys/liquidhaskell#2132
Liquid Haskell can't collect specs in .hsc files. See ucsd-progsys/liquidhaskell#2132
Liquid Haskell can't collect specs in .hsc files. See ucsd-progsys/liquidhaskell#2132
Liquid Haskell can't collect specs in .hsc files. See ucsd-progsys/liquidhaskell#2132
Liquid Haskell can't collect specs in .hsc files. See ucsd-progsys/liquidhaskell#2132
Liquid Haskell can't collect specs in .hsc files. See ucsd-progsys/liquidhaskell#2132
I'm reproducing with the
hsc2hs produces the following file
Removing the LINE pragma causes the definition of |
Consider the following example, where the source for the
A
module is preprocessed with hsc2hs:LH fails with the following error:
If
A.hsc
is renamed toA.hs
instead, then everything works fine. This problem might be hsc2hs-specific, but I suspect it's a more general problem with preprocessed source code.Version of LH used: 0.8.10.7 (latest release on Hackage at time of writing)
The text was updated successfully, but these errors were encountered: