by Fiahil · 11y ago · 0 comments
I would love if I could avoid this with Fredge. But, in the end, I would probably be better off using Haskell directly.
This is certainly true. You can see Frege as a subset of Haskell 2010 plus some GHC extensions plus the native interface (i.e. the Java FFI).
Unless you really need the JVM, Haskell (i.e. GHC) is the probably the better choice.
Frege is just an offer for the minority that wants pure FP specifically on the JVM. Those people had no real choice until recently, given that CAL is dead, and E. Kmett's "ermine" not yet there.
As long as you are only bringing things in from Java-land, rather than going the other way though, the wrapping can be fairly minimal.