google / google/codeworld

Pragmas in student code could break requirements checking

Open
#1,060 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Haskell
Stars
1.3k
Forks
201
PR merge metrics
No merged PRs in 30d

Description

As discussed in #1059:

When requirements are being checked, the DynFlags from the current GHC compilation are used when parsing student code and templates, but that means that LANGUAGE and OPTIONS_GHC pragmas from the current module are included in these flags.

This has the potential to cause some issues, as it means that student source code could affect parsing, possibly changing the interpretation of certain requirements or causing them to fail to parse properly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.