Skip to content

copilot-theorem: Copilot.Theorem.What4.Translate enables PatternSynonyms unnecessarily #733

Description

@ivanperez-keera

Description

The module copilot-theorem:Copilot.Theorem.What4.Translate enables the language extension PatternSynonyms unnecessarily. Nothing in the module requires that extension and it should continue to compile without it.

Per our style guide to remove unused code and minimize extensions, this extension should be removed from that module.

Type

  • Maintenance: Remove unused extension in compliance with style guide.

Additional context

None.

Requester

  • Ivan Perez.

Method to check presence of bug

We can check that the module declares the extension PatternSynonyms with grep:

$ grep -nHre 'PatternSynonyms' copilot-theorem/src/Copilot/Theorem/What4/Translate.hs
copilot-theorem/src/Copilot/Theorem/What4/Translate.hs:5:{-# LANGUAGE PatternSynonyms            #-}

However, we can only check that it is not needed by removing it and checking that copilot-theorem compiles correctly without it.

Expected result

The module copilot-theorem:Copilot.Theorem.What4.Translate does not enable the language extension PatternSynonyms.

Desired result

The module copilot-theorem:Copilot.Theorem.What4.Translate does not enable the language extension PatternSynonyms.

Proposed solution

Remove the line that enables the language extension PatternSynonyms from copilot-theorem/src/Copilot/Theorem/What4/Translate.hs.

Further notes

None.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CR:Status:AcceptedAdmin only: Change request accepted by technical leadCR:Type:ManagementAdmin only: Change request for conformance with policies or procedures

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions