earldouglas/sbt-frege

Would be great to add integration with REPL

Closed this issue · 6 comments

dk14 commented

Would be great to add a task to run this: https://github.com/Frege/frege-repl

Cool idea. Looks like it might be tricky though, with the way frege-repl is currently packaged.

dk14 commented

If you mean that README describes only how to install a raw jar, I think you can find frege-repl published to sonatype as well: https://oss.sonatype.org/content/groups/public/org/frege-lang/

P.S. just a cross-link with the mirrored issue: Frege/frege-repl#49

Oh cool, I didn't realize all the artifacts were available from Sonatype. This should actually be pretty easy. Here's a proof of concept, though I can't figure out what's wrong with the output.

Ok, got it working, and I'm about ready to cut a new release. Can you think of any features this should have other than the following?

  1. Launch the REPL
  2. Be able to access my project's classes and libraries from the REPL

Here's what using it from another project looks like:

$ sbt
> fregeRepl

frege> import example.HelloWorld (main)

frege> main []
Hello, world!
()

I went ahead and released this as version 1.1.1. Give a try and let me know if there are any improvements I can make. :]

dk14 commented

I think you might add support for "initialCommands in fregeRepl" same as it's done for console...