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

ghcjsi missing #171

Open
luite opened this issue May 5, 2014 · 6 comments
Open

ghcjsi missing #171

luite opened this issue May 5, 2014 · 6 comments
Labels

Comments

@luite
Copy link
Member

luite commented May 5, 2014

Even though GHCJS builds native code for everything, for some reason we don't have GHCJSi (or ghcjs --interactive), for some inexplicable reason (other than me not having infinite available time).

We should try to make this work, so that cabal repl would work as expected with GHCJS projects.

@luite luite added the feature label May 5, 2014
@luite
Copy link
Member Author

luite commented Jul 11, 2014

So with the default installation changed to not build native code, GHCJSi should run JavaScript code instead. With the node.js requirement and Template Haskell infrastructure (incremental code loading / execution) already in place this shouldn't be particularly hard to do.

@joelburget
Copy link

I vaguely remember recently seeing a brief video of a ghcjs repl. Can you point me to it? Also, when can we expect it to land in master?

@luite
Copy link
Member Author

luite commented Jul 20, 2015

I haven't published any videos myself, only screenshots. Anyone else could've built the ghcjsi branch to make a video of course. It will take quite a bit of work before it's really ready, the code is currently a hack and not quite complete, so I'd say at least a few months realistically. At the moment the new codegen and ES2015 support have priority.

screenshot: http://hdiff.luite.com/tmp/ghcjsi1.png

@schell
Copy link

schell commented Oct 11, 2016

@luite, what's the status on this? I saw some of your talk on ghcjsi and it looks great, though I can't seem to find a ghcjs build that includes it. I'm currently running stack ghci and get this error message:

Configuring GHCi with the following packages: event-transformer, lowbrow, varying
ghcjs-0.2.0.820160908-8.0.1.bin: --interactive is not yet supported.
Usage: For basic information, try the `--help' option.

@Profpatsch
Copy link

The ghcjsi branch is not yet merged into the ghc-8.0.1 branch.

I have started merging the two, but not enough knowledge of the compiler to fix the merge problems. I will open a PR with the partly merged branches, so maybe @luite can take a look at it.

@Profpatsch
Copy link

Here’s the PR: #549

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants