FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

docs: correct wrong import of PS inside JS in FFI.md by Hi-Angel · Pull Request #468 · purescript/documentation · GitHub

docs: correct wrong import of PS inside JS in FFI.md - #468

Open
Hi-Angel wants to merge 1 commit into
purescript:masterfrom
Hi-Angel:patch-3
Open

docs: correct wrong import of PS inside JS in FFI.md#468
Hi-Angel wants to merge 1 commit into
purescript:masterfrom
Hi-Angel:patch-3

Conversation

Hi-Angel commented Feb 10, 2025
edited
Loading

Copy link
Copy Markdown

The … from 'Test' import doesn't work unless some additional setup is done. Presumably that's what the hint related to psc compiler is about, but the documentation gives no detail on such configuration as if it would Just Work™. Well, it doesn't work — what does, however, is using relative path. It works well with both spago run and spago bundle-app (barring the fact that gcd has name clash in Prelude).

So replace the path to make sure it works with the default setup people most likely have.

The `… from 'Test'` import doesn't work unless some additional setup is done. Presumably this is the hint about `psc` compiler, but the documentation gives no detail on such configuration as if it would Just Work™. Well, it doesn't work — what does, however, is using relative path. It works well with both `spago run` and `spago bundle-app` (barring the fact that `gcd` has name clash in Prelude).

So replace the path to make sure it works with the default setup people most likely have.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL