Open jneira opened 5 years ago
The solution could be load directly the classes contained in those jars to use class reloading of eta-serv
i guess we should read the classes from jar and use from Eta.REPL
loadClasses :: HscEnv -> [(String, String, ByteString)] -> IO ()
It needs the class name, the class info and the actual contents.
@rahulmutt i see that Eta.Utils.JAR
has methods to read entries, but is there some existing way to read classes from? Getting [(String, String, ByteString)]
or ClassFile
Follow up of #805 (fixed with #905)
Although the repl is able to load java object files the handling could be improved:
.java
,.class
and.jar
files.java
and.class
are compiled in a auto generated__extra.jar
java-sources
) when initialize the dynamic linker: https://github.com/typelead/eta/blob/master/compiler/Eta/REPL/Linker.hs#L150-L172:load path/to/my.jar
on the fly