<div dir="ltr"><div><div></div>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.<br><br>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.<br><br></div>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.<br><br><a href="https://github.com/tweag/inline-java#readme">https://github.com/tweag/inline-java#readme</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 3, 2016 at 12:49 AM, Desonte Jolivet <span dir="ltr"><<a href="mailto:jolivetdesonte@yahoo.com" target="_blank">jolivetdesonte@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3858">Hello All:</div><div id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3673"><br></div><div id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3629" dir="ltr">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.</div><div id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3629" dir="ltr"><br></div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3764">src/Foreign/Java/IO.hs:5:7: Warning:</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3765">    -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/<wbr>OVERLAPS</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3766">[ 1 of 24] Compiling Foreign.Java.Tutorial ( src/Foreign/Java/Tutorial.hs, dist/build/Foreign/Java/<wbr>Tutorial.o )</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3767">[ 2 of 24] Compiling <a href="http://Foreign.Java.IO" target="_blank">Foreign.Java.IO</a>  ( src/Foreign/Java/IO.hs, dist/build/Foreign/Java/IO.o )</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3768">[ 3 of 24] Compiling Foreign.Java.Control ( src/Foreign/Java/Control.hs, dist/build/Foreign/Java/<wbr>Control.o )</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3769">[ 4 of 24] Compiling Foreign.Java.Bindings.<wbr>ReflectHaskell ( src/Foreign/Java/Bindings/<wbr>ReflectHaskell.hs, dist/build/Foreign/Java/<wbr>Bindings/ReflectHaskell.o )</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3770">[ 5 of 24] Compiling Foreign.Java.Bindings.<wbr>Haskell2Java ( dist/build/Foreign/Java/<wbr>Bindings/Haskell2Java.hs, dist/build/Foreign/Java/<wbr>Bindings/Haskell2Java.o )</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3771">[ 6 of 24] Compiling Foreign.Java.Bindings.<wbr>HaskellTypes ( src/Foreign/Java/Bindings/<wbr>HaskellTypes.hs, dist/build/Foreign/Java/<wbr>Bindings/HaskellTypes.o )</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3772">[ 7 of 24] Compiling Foreign.Java.Bindings.JavaSE6 ( src/Foreign/Java/Bindings/<wbr>JavaSE6.hs, dist/build/Foreign/Java/<wbr>Bindings/JavaSE6.o )</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3773">[ 8 of 24] Compiling Foreign.Java.Utils ( src/Foreign/Java/Utils.hs, dist/build/Foreign/Java/Utils.<wbr>o )</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3774">[ 9 of 24] Compiling Foreign.Java.Bindings.<wbr>JavaTypes ( src/Foreign/Java/Bindings/<wbr>JavaTypes.hs, dist/build/Foreign/Java/<wbr>Bindings/JavaTypes.o )</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3775">[10 of 24] Compiling Foreign.Java.Util ( src/Foreign/Java/Util.hs, dist/build/Foreign/Java/Util.o )</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3776"><br id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3777"></div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3778">src/Foreign/Java/Util.hs:5:19:</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3779">    Ambiguous occurrence ‘<$’</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3780">    It could refer to either ‘Foreign.Java.Util.<$’,</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3781">                             defined at src/Foreign/Java/Util.hs:24:1</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3782">                          or ‘Prelude.<$’,</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3783">                             imported from ‘Prelude’ at src/Foreign/Java/Util.hs:4:8-<wbr>24</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3784">                             (and originally defined in ‘GHC.Base’)</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3785">cabal: Error: some packages failed to install:</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3786">java-bridge-0.20130606.3 failed during the building phase. The exception was:</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3787">ExitFailure 1</div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3788"><br id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3789"></div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3788"><br></div><div dir="ltr" id="m_7915475798823502706yui_3_16_0_ym19_1_1478148044210_3788">-Jo</div></div></div><br>______________________________<wbr>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div>