Repository navigation
Add Haskell examples for TESTed - #56
Merged
Merged
Conversation
This was referenced Oct 19, 2026
TomNaessens
force-pushed
the
feature/8847-tested-haskell-examples
branch
from
October 19, 2026 16:25
29f5429 to
51dd768
Compare
TomNaessens
force-pushed
the
feature/8847-tested-haskell-examples
branch
from
October 19, 2026 16:40
51dd768 to
32f1ccc
Compare
TomNaessens
marked this pull request as ready for review
October 19, 2026 19:26
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TomNaessens
force-pushed
the
feature/8847-tested-haskell-examples
branch
from
October 19, 2026 19:29
32f1ccc to
6d3fd73
Compare
TomNaessens
enabled auto-merge
October 19, 2026 19:34
bmesuere
approved these changes
Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Haskell examples for TESTed under
tested/haskell/, one runnable Dodona exercise each, withtested/haskell/dirconfig.jsonsetting the language. Each exercise shows one TESTed feature and is typical for the language; the exercises that one suite judges in every language (tested/echo-name,tested/smallest) are in #64.factorialfactorial :: Int -> Int)sum-of-squaresmapandfoldr(sumOfSquares :: [Int] -> Int)sum-linesinteractreads numbers line by line and prints their sumDescriptions in en and nl.
module Submission whereitself, so each description says not to start with amoduleline.exitWith).Int(factorial 5 :: Int), sofactorialisInt -> Int, notInteger. An empty list ([]) has no element type and makes TESTed reject the whole suite for Haskell, sosum-of-squaresdoesn't test it.Part of https://github.com/dodona-edu/dodona/issues/8847.
Manual testing instructions
data/exercises/(git fetch && git checkout feature/8847-tested-haskell-examples).http://dodona.localhost:3000/dev_sign_in/1), open that repository's page and reprocess its activities.solution/solution.hs: all tests pass.Verification (dodona-authoring verify skill, ghcr.io/dodona-edu/dodona-tested, universal-judge master)
DSL validation passes for every suite. "en" and "nl" are full runs the way Dodona does them, with that
natural_language.factorial)sumOfSquares)🤖 Generated with Claude Code