Skip to content

Fix almost all Hugs incompatibilities#429

Open
AlexandreTunstall wants to merge 9 commits intoaugustss:masterfrom
AlexandreTunstall:hfs-hugs-head
Open

Fix almost all Hugs incompatibilities#429
AlexandreTunstall wants to merge 9 commits intoaugustss:masterfrom
AlexandreTunstall:hfs-hugs-head

Conversation

@AlexandreTunstall
Copy link
Copy Markdown
Contributor

The only thing this PR doesn't fix is the use of patterns that Hugs cannot parse (ViewPatterns and commas in guards).

I do have a patch for the incompatible patterns, but it involves a lot of isJust and fromJust so I have omitted it here.
Please let me know if you're interested in that change despite its flaws.

I tested this against v0.15.4.0 and then rebased the fixes onto master, so this doesn't address any incompatibilities added to master since v0.15.4.0.

@AlexandreTunstall
Copy link
Copy Markdown
Contributor Author

One other noteworthy issue that this PR doesn't address is the inability to compile the compressedGCTable blob when running under Hugs. But that table doesn't prevent microhs from running under Hugs, it only prevents self-hosting.

SetTCState requires a cyclic import, which Hugs doesn't support.
With a bit of tweaking, it is possible to replace all uses of SetTCState
with slightly less hacky code.
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.

1 participant