Safe Haskell | Safe-Inferred |
---|
REPL implementation that directly uses the GHC API.
https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/compiler/api https://wiki.haskell.org/GHC/As_a_library
Documentation
The actual session runs in another thread, so this is the communication
channel. (expr, namespace, response_mvar)
make_session :: IO Session Source #
interpreter :: Session -> IO () Source #
Initialize the GHC API and run the interpreter loop.