You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
copilot-theorem: Copilot.Theorem.Misc.SExpr.parseSExpr is unused #661
The function copilot-theorem:Copilot.Theorem.Misc.SExpr.parseSExpr is not used anywhere in the implementation. The module is internal and not exposed to the user, so that function does not have and cannot have any users.
Type
Bug: unused code included in the implementation.
Additional context
None.
Requester
Ivan Perez.
Method to check presence of bug
The following search finds mentions of parseSExpr in the implementation, showing only the definition:
The string should be either empty (the function does not exist) or list further uses.
Desired result
The string should be either empty (the function does not exist) or list further uses.
Proposed solution
Removing the function from the module Copilot.Theorem.Misc.SExpr.parseSExpr, as well as any auxiliary functions or imports exclusively needed by that function, if any.
The solution proposed produces the expected result. Details:
The following dockerfile checks that parseSExpr is not mentioned anywhere in the code, after which it prints the message "Success":
FROM ubuntu:jammy
RUN apt-get update
RUN apt-get install --yes git
SHELL ["/bin/bash", "-c"]
CMD git clone $REPO \
&& cd $NAME \
&& git checkout $COMMIT \
&& ! grep -nHre '\<parseSExpr\>' --include='*.hs' \
&& echo "Success"
Command (substitute variables based on new path after merge):
Activity
ivanperez-keera commentedon Sep 7, 2025
Change Manager: Confirmed that the issue exists.
ivanperez-keera commentedon Sep 7, 2025
Technical Lead: Confirmed that the issue should be addressed.
ivanperez-keera commentedon Sep 7, 2025
Technical Lead: Issue scheduled for fixing in Copilot 4.5.1.
Fix assigned to: @ivanperez-keera .
EDIT: Milestone renamed from 4.6 to 4.5.1.
copilot-theorem: Remove unused function parseSExpr. Refs Copilot-Lang…
copilot-theorem: Removed unnecessary dependency on parsec. Refs Copil…
copilot-theorem: Document changes in CHANGELOG. Refs Copilot-Language…
copilot-theorem: Remove unused function Copilot.Theorem.Misc.SExpr.pa…
copilot-theorem: Removed unnecessary dependency on parsec. Refs Copil…
copilot-theorem: Document changes in CHANGELOG. Refs Copilot-Language…
ivanperez-keera commentedon Sep 7, 2025
Implementor: Solution implemented, review requested.
ivanperez-keera commentedon Sep 7, 2025
Change Manager: Verified that:
Build log: https://app.travis-ci.com/github/Copilot-Language/copilot/builds/276239475
The following dockerfile checks that
parseSExpris not mentioned anywhere in the code, after which it prints the message "Success":The documentation is updated to reflect that parsing is no longer supported for
SExpr.Update not needed; change does not affect examples.
Bump not needed; change does not affect public API.
ivanperez-keera commentedon Sep 7, 2025
Change Manager: Implementation ready to be merged.
Merge branch 'develop-remove-parseSExpr'. Close Copilot-Language#661.