Skip to content

WIP: MicroHs compatibility #1205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

claudeha
Copy link
Contributor

@claudeha claudeha commented Jun 6, 2025

some patches for tidal-core to make it compatible with https://github.com/augustss/MicroHs. the rest of Tidal hasn't been checked, maybe this PR breaks some things elsewhere (particularly the pattern to pattern_ renaming). work in progress, this PR is mainly to advertise the ongoing work to avoid possible duplication of effort.

  • 3e52820 is in another pull request already, should be no problem except possibly for prehistoric GHC versions import IsString from a portable module #1204

  • 29d3134 is maybe controversial but is probably the only one that will remain required long-term, as new things are being added to MicroHs at a rapid pace; but I don't think MicroHs will get a way to turn on/off the different language extensions that it supports. I have not yet checked the rest of Tidal to chase up any dependent code that calls the old name...

  • 5bb3d0f manually implements Functor instances instead of deriving them, ideally this would not be necessary as writing code by hand can introduce bugs. see wishlist: DeriveFunctor augustss/MicroHs#202

  • c14a100 likewise demotes some possible bugs from type errors to runtime errors, so careful coding is more necessary. see polymorphic record update augustss/MicroHs#190

claudeha added 4 commits June 6, 2025 13:24
turns missing field update into a runtime undefined error
instead of a compile-time type error;

so be sure to update both the `query` and `pureValue`
of the `Pattern` when using `polymorphic`.

see also: <augustss/MicroHs#190>
@claudeha claudeha marked this pull request as draft June 6, 2025 13: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.

1 participant