Skip to content

fix bug with Paths_MicroHs not being regenerated#454

Open
Rewbert wants to merge 1 commit intoaugustss:masterfrom
Rewbert:paths_fix
Open

fix bug with Paths_MicroHs not being regenerated#454
Rewbert wants to merge 1 commit intoaugustss:masterfrom
Rewbert:paths_fix

Conversation

@Rewbert
Copy link
Copy Markdown
Contributor

@Rewbert Rewbert commented Apr 22, 2026

It is built in dist-mcabal/ per the Makefile. Its contents are created from variables in the Makefile. The rule to built it, however, has no prerequisites.

I had forked and installed mhs when the version was 0.14.x.x, and thus had a Paths_MicroHs.hs in there that contained these versions. When I pulled and rebuilt/installed the compiler after the version had bumped to 0.15.x.x, this file was not regenerated (as my dist-mcabal/ remained from before).

Installation proceeded as expected and without errors, but at runtime there were discrepancies. I had made changes to eval.c that never appeared at runtime. Things were copied over during installation to both ~/.mcabal/mhs-0.15.5.0/ and ~/.mcabal/mhs-0.15.4.0/. I didn't dig into exactly what went were, but this one-liner seemed to fix it. Nightmare to narrow down this issue!

I don't know if this is the correct fix, please advise @augustss

@augustss
Copy link
Copy Markdown
Owner

I will get rid of paths stuff altogether. Very soon.

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.

2 participants