Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Use -fexternal-interpreter #1257

Open
mpickering opened this issue May 16, 2019 · 1 comment
Open

Use -fexternal-interpreter #1257

mpickering opened this issue May 16, 2019 · 1 comment

Comments

@mpickering
Copy link
Collaborator

There are some quite big advantages to using -fexternal-interpreter related to #1171

GHC devs: https://mail.haskell.org/pipermail/ghc-devs/2019-May/017655.html

https://gitlab.haskell.org/ghc/ghc/wikis/remote-ghci

https://simonmar.github.io/posts/2016-02-12-Stack-traces-in-GHCi.html

One disadvantage is that plugins don't work but this option can be disabled/enabled with a flag.

cc @DanielG

@alanz
Copy link
Collaborator

alanz commented May 16, 2019

I have always had in mind to use this to provide REPL functionality, as there is a GHC Hook to be able to provide our own file descriptors for stdin/stdout/stderr, which means we can separate out the hie use of these from the running code use of it. It also means we can keep the basic hie operation responsive, even if a user is running something intense in the interpreter.

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

No branches or pull requests

2 participants