Eta REPL already provides functionality for getting several bits of information about loaded source code, most of which is available
after running :set +c
.
:load
will do a-O0
compilation of the specified file and directly load the class files into the underlyingeta-serv
's JVM process's heap.
Documentation: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/ghci.html#ghci-cmd-:load
Implementation: https://github.com/typelead/eta/blob/master/eta/Eta/REPL/UI.hs#L1721-L1723