Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leakage of warnings about supporting modules #13

Open
jvoigtlaender opened this issue Jun 16, 2024 · 0 comments
Open

Leakage of warnings about supporting modules #13

jvoigtlaender opened this issue Jun 16, 2024 · 0 comments

Comments

@jvoigtlaender
Copy link
Member

Specifically, in this task: https://autotool.fmi.uni-due.de/route/aufgabe/571, the IOTestHelper uses tail.

If the student submits a compiling main module, the presence of tail in the helper module has no impact.

But if the student submits a non-compiling main module, then in addition to the compiler error message about their own code, they also get this message about IOTestHelper:

IOTestHelper.hs:11:66: warning: [GHC-63394] [-Wx-partial (in -Wextended-warnings)]
    In the use of ‘tail’
    (imported from Prelude, but defined in GHC.List):
    "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty."

That's of course confusing.

Is there a way to systematically make sure only complaints about the student code surface?

Or to make sure that at configuration time the task type checks that the modules are compile-error-and-warning-free?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant