parsing/AST refactoring

Open
#82 0 comments 0 reactions 0 assignees View on GitHub

@nimec01 is already working on this.

Since Nov 12, 2026.

  • #83 by @nimec01 — open

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
haskell
Domain
backend

Research direction

Start by reading pull request #73 to identify the AST pre-computation and haskell-src-exts parsing changes requested for separation. Then trace the FeedbackPhase sequence around CodeWidth and Compilation to assess where parsing would fit; done means parsing can run as its own phase, with syntax checking configurable without invoking GHC. The payload names no source files or tests.

Written by the indexing model from the issue text.

Description

I think the changes concerning AST pre-computation and haskell-src-exts parsing from https://github.com/fmidue/haskell-template-task/pull/73 should be put into a separate pull request, to be merged before #73.

While at it, it would make sense to introduce a further FeedbackPhase, between CodeWidth and Compilation. That phase would exactly be the haskell-src-exts parsing step, and thus it would become possible to configure that students' submissions should be checked for "Haskell syntactical correctness", but without any further checking, in particular not firing up GHC. That might be useful, e.g., in an eventual exam setting if the concurrent load on the task server needs to be controlled, in particular avoiding it starting many file and GHC processes.

Dominant language
Haskell
Stars
0
Forks
1
Avg merge
16h 8m
Merged PRs (30d)
4

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fmidue/haskell-template-task

All issues in fmidue/haskell-template-task

Similar issues

More Haskell issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.