Copilot-Language / copilot

A stream-based runtime-verification framework for generating hard real-time C code.
http://copilot-language.github.io
618 stars 49 forks source link

`copilot-theorem`: Failure to compile with GHC 9.6.3 #491

Closed ivanperez-keera closed 5 months ago

ivanperez-keera commented 5 months ago

Description

copilot-theorem is failing to compile with GHC 9.6.3. This is because the module Control.Monad.State no longer re-exports Control.Monad, so the functions ap, forM, when, liftM and liftM2 are not in scope. Another issue is that System.Directory can no longer be imported safely. These errors are causing the build to fail on hackage, which uses GHC 9.6.3.

Type

Additional context

Requester

Method to check presence of bug

Compiling with GHC 9.6 fails.

Expected result

Compiling with GHC 9.6 succeeds.

Desired result

Compiling with GHC 9.6 succeeds.

Proposed solution

Modify copilot-theorem to import Control.Monad, and to not import System.Directory safely.

Further notes

None.

ivanperez-keera commented 5 months ago

Change Manager: Confirmed that the issue exists.

ivanperez-keera commented 5 months ago

Technical Lead: Confirmed that the issue should be addressed.

ivanperez-keera commented 5 months ago

Technical Lead: Issue scheduled for fixing in Copilot 3.18.1.

Fix assigned to: @ivanperez-keera .

ivanperez-keera commented 5 months ago

Implementor: Solution implemented, review requested.

ivanperez-keera commented 5 months ago

Change Manager: Verified that:

ivanperez-keera commented 5 months ago

Change Manager: Implementation ready to be merged.