-
Notifications
You must be signed in to change notification settings - Fork 63
copilot-language
: test compile error
#469
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
Comments
Thanks a lot! Will review it and get back to you. |
copilot-language
: test compile error
Are you able to reproduce this one locally, or do you need any more info from me on it? |
I'm trying to reproduce it in a docker container with GHC 9.4.7 and Cabal 3.8. Cabal is giving me headaches: haskell/cabal#9444. |
I managed to reproduce the problem. |
Hey Ivan, just checking in to see if this was looking relatively easy to fix, or whether it might take a bit to sort out. I think this is the last (known) blocker in getting copilot updated in Debian. Obviously not the most urgent issue in the world, though. :-) |
Hi. I'm hoping we'll be able to fix this soon. I don't know if I'll be able to find time this week but I'll do everything I can. If not, I'll prioritize fixing this by next week. And thanks for following up on this! Having Copilot in Debian is a big deal for us and your support to make that happen is invaluable :) |
@swt2c I was able to find the solution. I'll try to push this soon. If you want to backport this change to Copilot 3.17 on Debian, here's the diff: diff --git a/copilot-language/tests/Test/Copilot/Language/Reify.hs b/copilot-language/tests/Test/Copilot/Language/Reify.hs
index e056d946..d724df73 100644
--- a/copilot-language/tests/Test/Copilot/Language/Reify.hs
+++ b/copilot-language/tests/Test/Copilot/Language/Reify.hs
@@ -31,7 +31,7 @@ import qualified Copilot.Language.Operators.Integral as Copilot
import qualified Copilot.Language.Operators.Mux as Copilot
import qualified Copilot.Language.Operators.Ord as Copilot
import Copilot.Language.Reify (reify)
-import Copilot.Language.Spec (observer)
+import Copilot.Language.Spec (Spec, observer)
import Copilot.Language.Stream (Stream)
import qualified Copilot.Language.Stream as Copilot
@@ -732,7 +732,8 @@ semanticsShowK steps (SemanticsP (expr, exprList)) =
checkSemanticsP :: Int -> [a] -> SemanticsP -> IO Bool
checkSemanticsP steps _streams (SemanticsP (expr, exprList)) = do
-- Spec with just one observer of one expression.
- let spec = observer testObserverName expr
+ let spec :: Spec
+ spec = observer testObserverName expr
-- Reified stream (low-level)
llSpec <- reify spec |
Thanks @ivanperez-keera I'll try putting that patch in tonight. |
Description
Type
Additional context None. Requester
Method to check presence of bug Compiling
Expected result The above tests should compile without errors. Desired result The above tests should compile without errors. Proposed solution Add type annotations in Further notes None. |
Change Manager: Confirmed that the issue manifests with GHC 9.4. |
Technical Lead: Confirmed that the issue should be addressed. |
Thanks @ivanperez-keera, I can confirm this patch gets copilot back to a green board in Debian (ignore mips64el). :-) |
Technical Lead: Bug scheduled for fixing in Copilot 3.18. Fix assigned to: @ivanperez-keera. |
…pilot-Language#469. copilot-language's tests fail to compile with GHC 9.4. Prior versions made some arbitrary decisions during type interfence, and the new type checker will simply reject such programs. This commit modifies a function in the tests that uses an existential type, by adding an explicit type signature. Doing so helps GHC versions after 9.4 typecheck the code.
…Refs Copilot-Language#469. copilot-language's tests fail to compile with GHC 9.4. Prior versions made some arbitrary decisions during type interfence, and the new type checker will simply reject such programs. This commit modifies a function in the tests that uses an existential type, by adding an explicit type signature. Doing so helps GHC versions after 9.4 typecheck the code.
Implementor: Solution implemented, review requested. |
Change Manager: Verified that:
|
Change Manager: Implementation ready to be merged. |
While upgrading to copilot 3.17, we noticed that
copilot-language
's tests fail to compile with the below error:Unsure if this is possibly related to GHC 9.4 updates, or some other package updates in Debian?
Full compile logs here (for amd64): https://buildd.debian.org/status/fetch.php?pkg=haskell-copilot-language&arch=amd64&ver=3.17-1&stamp=1699932749&raw=0
Let me know if I can provide any additional info.
The text was updated successfully, but these errors were encountered: