Skip to content

DUX-5352 eval: Skip parsing commands in non-Haskell files#459

Merged
9999years merged 1 commit into
mainfrom
wiggles/dux-5352/ktyx
Jun 15, 2026
Merged

DUX-5352 eval: Skip parsing commands in non-Haskell files#459
9999years merged 1 commit into
mainfrom
wiggles/dux-5352/ktyx

Conversation

@9999years

Copy link
Copy Markdown
Member

To actually execute eval commands with the proper bindings in scope, we need to be able to evaluate (interpret) a file, which requires we know its module name (because :module + *MODULE_NAME only supports module names and not source paths).

Let's guard adding an entry to the eval_commands map by making sure we can convert the path to a module name.

See also: #458, #454.

  • Updated the user manual in docs/.
  • Added integration / regression tests in tests/.

To actually _execute_ eval commands with the proper bindings in scope,
we need to be able to evaluate (interpret) a file, which requires we
know its module _name_ (because `:module + *MODULE_NAME` only supports
module names and not source paths).

Let's guard adding an entry to the `eval_commands` map by making sure we
can convert the path to a module name.

See also: #458, #454.
@linear-code

linear-code Bot commented Jun 15, 2026

Copy link
Copy Markdown

DUX-5352

@9999years 9999years requested review from dtpowl and lf- June 15, 2026 18:01
@9999years 9999years marked this pull request as ready for review June 15, 2026 18:04
@9999years 9999years requested a review from a team as a code owner June 15, 2026 18:04
@9999years 9999years requested a review from josephsumabat June 15, 2026 18:04
@9999years 9999years merged commit 33f693d into main Jun 15, 2026
39 checks passed
@9999years 9999years deleted the wiggles/dux-5352/ktyx branch June 15, 2026 18:12
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

Successfully merging this pull request may close these issues.

3 participants