Pragmas in student code could break requirements checking
Open
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
Assessment
This issue has not been assessed yet.