Skip to content
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

Allow importing JS-specific Effekt libraries on jsWeb backend #738

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

jiribenes
Copy link
Contributor

Currently, it's not possible to import, say, mutable/map when working on the jsWeb backend.
This PR should fix that.

@jiribenes
Copy link
Contributor Author

Tested quickly with

import mutable/map

def main() = {
  val m: Map[Int, String] = emptyMap()
  m.update(42, "hello")
  m.update(0, "zerooo")
  inspect(m.values)
  inspect(m.keys)
  inspect(m)
}

~>

$ effekt --backend=js-web minirepro.effekt

~>
Screenshot 2024-12-11 at 16 15 02

@jiribenes jiribenes merged commit bccb2b3 into master Dec 11, 2024
2 checks passed
@jiribenes jiribenes deleted the fix/jsweb-jslib branch December 11, 2024 15:15
b-studios pushed a commit that referenced this pull request Dec 24, 2024
Currently, it's not possible to import, say, `mutable/map` when working
on the `jsWeb` backend.
This PR fixes that.
EveEme pushed a commit to EveEme/effekt that referenced this pull request Jan 20, 2025
…-lang#738)

Currently, it's not possible to import, say, `mutable/map` when working
on the `jsWeb` backend.
This PR fixes that.
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