[Haskell-beginners] Java-Bridge, Ambiguous occurrence ‘<$’

David McBride toad3k at gmail.com
Thu Nov 3 19:58:01 UTC 2016


That specific error can be fixed by simply removing that function and its
export from src/Foreign/Java/Util.hs as it is exported by Prelude now and
there is no reason for it to be in his code.

Given the amount of bitrot that package has probably suffered, I'm not sure
how much faith I have that it will work.  That said, if you are
enterprising it probably wouldn't be too hard to fix all these errors.

In other news there are some other recent developments on this front.
There is an inline-java project that looks very promising and may actually
be very simple to get up and working with stack.

https://github.com/tweag/inline-java#readme

On Thu, Nov 3, 2016 at 12:49 AM, Desonte Jolivet <jolivetdesonte at yahoo.com>
wrote:

> Hello All:
>
> Im interested interfacing with the JVM through Haskell and I found this
> neat library on Hackag name java-bridge although when I try and install
> with cabal I get the below error, "Ambiguous occurrence ‘<$’". Any tips on
> how to clear this up or how I should proceed would be very helpful, Thank
> you all in advance.
>
> src/Foreign/Java/IO.hs:5:7: Warning:
>     -XOverlappingInstances is deprecated: instead use per-instance pragmas
> OVERLAPPING/OVERLAPPABLE/OVERLAPS
> [ 1 of 24] Compiling Foreign.Java.Tutorial ( src/Foreign/Java/Tutorial.hs,
> dist/build/Foreign/Java/Tutorial.o )
> [ 2 of 24] Compiling Foreign.Java.IO  ( src/Foreign/Java/IO.hs,
> dist/build/Foreign/Java/IO.o )
> [ 3 of 24] Compiling Foreign.Java.Control ( src/Foreign/Java/Control.hs,
> dist/build/Foreign/Java/Control.o )
> [ 4 of 24] Compiling Foreign.Java.Bindings.ReflectHaskell (
> src/Foreign/Java/Bindings/ReflectHaskell.hs, dist/build/Foreign/Java/Bindings/ReflectHaskell.o
> )
> [ 5 of 24] Compiling Foreign.Java.Bindings.Haskell2Java (
> dist/build/Foreign/Java/Bindings/Haskell2Java.hs, dist/build/Foreign/Java/Bindings/Haskell2Java.o
> )
> [ 6 of 24] Compiling Foreign.Java.Bindings.HaskellTypes (
> src/Foreign/Java/Bindings/HaskellTypes.hs, dist/build/Foreign/Java/Bindings/HaskellTypes.o
> )
> [ 7 of 24] Compiling Foreign.Java.Bindings.JavaSE6 (
> src/Foreign/Java/Bindings/JavaSE6.hs, dist/build/Foreign/Java/Bindings/JavaSE6.o
> )
> [ 8 of 24] Compiling Foreign.Java.Utils ( src/Foreign/Java/Utils.hs,
> dist/build/Foreign/Java/Utils.o )
> [ 9 of 24] Compiling Foreign.Java.Bindings.JavaTypes (
> src/Foreign/Java/Bindings/JavaTypes.hs, dist/build/Foreign/Java/Bindings/JavaTypes.o
> )
> [10 of 24] Compiling Foreign.Java.Util ( src/Foreign/Java/Util.hs,
> dist/build/Foreign/Java/Util.o )
>
> src/Foreign/Java/Util.hs:5:19:
>     Ambiguous occurrence ‘<$’
>     It could refer to either ‘Foreign.Java.Util.<$’,
>                              defined at src/Foreign/Java/Util.hs:24:1
>                           or ‘Prelude.<$’,
>                              imported from ‘Prelude’ at
> src/Foreign/Java/Util.hs:4:8-24
>                              (and originally defined in ‘GHC.Base’)
> cabal: Error: some packages failed to install:
> java-bridge-0.20130606.3 failed during the building phase. The exception
> was:
> ExitFailure 1
>
>
> -Jo
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20161103/41d7d526/attachment-0001.html>


More information about the Beginners mailing list