haskell scala interoperability

百般思念 提交于 2019-12-04 08:24:49

I found that Java - Haskell has interoperability. I am curious to know that similarly does Scala-Haskell interoperability exist or not?

Well given that interoperability is transitive, and given that (hj_interop : Haskell <-> Java) and (js_interop : Java <-> Scala), we therefore conclude that Haskell <-> Scala.

If you want Haskell -> Scala, then just take Haskell -> Java from hj_interop, and Java -> Scala from js_interop. If you want Scala -> Haskell, then just take Scala -> Java from js_interop, and Java -> Haskell from hj_interop.

This isn't a very hand-holdy explanation of how to accomplish Haskell - Scala interoperability, but given existing interoperatilities, you just compose them in the obvious way. Scala does not provide any direct, convenient interoperability with Haskell that I am aware of, other than providing scalaz to add an extra Haskell-y feel to Scala. Haskell does not provide any direct, convenient interoperability with Scala that I am aware of.

It is possible, but I am not aware of any examples.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!