<div dir="ltr"><div>Hi, </div>I did wipe the constraints of gtk and cairo < 0.13 from the glade.cabal file, and it installed correctly only to see a error happening because I used the wrong glade version to generate the UI, later I found out the gtk3 library... which installed correctly from scratch and worked just fine.. the only downside so far is lack of samples written in haskell for the gtk3... I found more about gtk2... and there is some changes on "how to write"... the first difference for me was on how to set events for widgets... I did download the sources now, and started looking in the gtk3 demos...<br><br>Em domingo, 19 de abril de 2015 23:00:28 UTC-3, Zilin Chen  escreveu:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <font face="monospace">Sorry for late reply. This issue has been
      fixed as per <a href="https://github.com/gtk2hs/gtk2hs/issues/100" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fgtk2hs%2Fgtk2hs%2Fissues%2F100\46sa\75D\46sntz\0751\46usg\75AFQjCNHWAoBvMjCWF-NWfblcUac9ZF8xpg';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fgtk2hs%2Fgtk2hs%2Fissues%2F100\46sa\75D\46sntz\0751\46usg\75AFQjCNHWAoBvMjCWF-NWfblcUac9ZF8xpg';return true;">https://github.com/gtk2hs/<wbr>gtk2hs/issues/100</a> which
      appears in a later version of cairo. It seems than glade requires
      gtk < 0.13 ==> cairo < 0.13 and doesn't include the fix.</font><br>
    <br>
    <div>On 19/04/15 02:10, Jean Lopes wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Ok, I will report the commands I am using:<br>
        $ cd glade (Matthew Pickering's glade repository clone)<br>
        $ cabal sandbox init<br>
        $ cabal update<br>
        $ cabal install --only-dependencies --dry-run<br>
        > Resolving dependencies...<br>
        > In order, the following would be installed (use -v for more
        details):<br>
        > mtl-2.2.1<br>
        > utf8-string-0.3.8 (latest: 1)<br>
        > cairo-0.12.5.3 (latest: 0.13.1.0)<br>
        > glib-0.12.5.4 (latest: 0.13.1.0)<br>
        > gio-0.12.5.3 (latest: 0.13.1.0)<br>
        > pango-0.12.5.3 (latest: 0.13.1.0)<br>
        > gtk-0.12.5.7 (latest: 0.13.6)<br>
        $ cabal install --only-dependencies<br>
        > ... here comes the first error ...<br>
        > [1 of 2] Compiling SetupWrapper     (
        /tmp/cairo-0.12.5.3-1305/<wbr>cairo-0.12.5.3/SetupWrapper.<wbr>hs,
        /tmp/cairo-0.12.5.3-1305/<wbr>cairo-0.12.5.3/dist/dist-<wbr>sandbox-de3654e1/setup/<wbr>SetupWrapper.o
        )<br>
        > <br>
        >
        /tmp/cairo-0.12.5.3-1305/<wbr>cairo-0.12.5.3/SetupWrapper.<wbr>hs:91:17:<br>
        >     Ambiguous occurrence ‘die’<br>
        >     It could refer to either
        ‘Distribution.Simple.Utils.<wbr>die’,<br>
        >                              imported from
        ‘Distribution.Simple.Utils’ at
        /tmp/cairo-0.12.5.3-1305/<wbr>cairo-0.12.5.3/SetupWrapper.<wbr>hs:8:1-32<br>
        >                           or ‘System.Exit.die’,<br>
        >                              imported from ‘System.Exit’ at
        /tmp/cairo-0.12.5.3-1305/<wbr>cairo-0.12.5.3/SetupWrapper.<wbr>hs:21:1-18<br>
        > Failed to install cairo-0.12.5.3<br>
        > [1 of 2] Compiling SetupWrapper     (
        /tmp/glib-0.12.5.4-1305/glib-<wbr>0.12.5.4/SetupWrapper.hs,
        /tmp/glib-0.12.5.4-1305/glib-<wbr>0.12.5.4/dist/dist-sandbox-<wbr>de3654e1/setup/SetupWrapper.o
        )<br>
        > <br>
        >
        /tmp/glib-0.12.5.4-1305/glib-<wbr>0.12.5.4/SetupWrapper.hs:91:<wbr>17:<br>
        >     Ambiguous occurrence ‘die’<br>
        >     It could refer to either
        ‘Distribution.Simple.Utils.<wbr>die’,<br>
        >                              imported from
        ‘Distribution.Simple.Utils’ at
        /tmp/glib-0.12.5.4-1305/glib-<wbr>0.12.5.4/SetupWrapper.hs:8:1-<wbr>32<br>
        >                           or ‘System.Exit.die’,<br>
        >                              imported from ‘System.Exit’ at
        /tmp/glib-0.12.5.4-1305/glib-<wbr>0.12.5.4/SetupWrapper.hs:21:1-<wbr>18<br>
        > Failed to install glib-0.12.5.4<br>
        > cabal: Error: some packages failed to install:<br>
        > cairo-0.12.5.3 failed during the configure step. The
        exception was:<br>
        > ExitFailure 1<br>
        > gio-0.12.5.3 depends on glib-0.12.5.4 which failed to
        install.<br>
        > glib-0.12.5.4 failed during the configure step. The
        exception was:<br>
        > ExitFailure 1<br>
        > gtk-0.12.5.7 depends on glib-0.12.5.4 which failed to
        install.<br>
        > pango-0.12.5.3 depends on glib-0.12.5.4 which failed to
        install.<br>
        <br>
        So I supose the problem lies within the cairo package, right?<br>
        <br>
        Em sexta-feira, 17 de abril de 2015 02:34:00 UTC-3, Zilin Chen
        escreveu:
        <blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div text="#000000" bgcolor="#FFFFFF"> <tt><big><big><font size="-1"><big><big>Do you still get the same
                        errors? I think the "</big></big></font></big>Sandboxes:

                basic usage" section in [0] is what you'd follow.<br>
                <br>
              </big><big>[0]
                <a href="https://www.haskell.org/cabal/users-guide/installing-packages.html#sandboxes-advanced-usage" rel="nofollow" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fwww.haskell.org%2Fcabal%2Fusers-guide%2Finstalling-packages.html%23sandboxes-advanced-usage\46sa\75D\46sntz\0751\46usg\75AFQjCNEKx2thAMaNrpac3_4KYMn2jcx1IA';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fwww.haskell.org%2Fcabal%2Fusers-guide%2Finstalling-packages.html%23sandboxes-advanced-usage\46sa\75D\46sntz\0751\46usg\75AFQjCNEKx2thAMaNrpac3_4KYMn2jcx1IA';return true;">https://www.haskell.org/cabal/<wbr>users-guide/installing-<wbr>packages.html#sandboxes-<wbr>advanced-usage</a></big></tt><br>
            <br>
            <div>On 17/04/15 12:11, Jean Lopes wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">Still no success...I am missing some very
                basic things probably..
                <div><br>
                  Em quinta-feira, 16 de abril de 2015 04:33:20 UTC-3,
                  Zilin Chen escreveu:
                  <blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
                    <div bgcolor="#FFFFFF" text="#000000"> Hi Jean,<br>
                      <br>
                      Simply do `$ cabal sandbox add-source <path to
                      the local glade>' and then `$ cabal install
                      --only-dependencies' as normal. I think it should
                      work.<br>
                      <br>
                      Cheers,<br>
                      Zilin<br>
                      <br>
                      <br>
                      <div>On 15/04/15 22:01, Jean Lopes wrote:<br>
                      </div>
                      <blockquote type="cite">
                        <div dir="ltr">
                          <div>I will try to use your branch before
                            going back to GHC 7.8...</div>
                          <div><br>
                          </div>
                          <div>But, how exactly should I do that ?</div>
                          <div>Clone your branch;</div>
                          <div>Build from local source code with cabal ?
                            (I just scrolled this part while reading
                            cabal tutorials, guess I'll have to take a
                            look now)  </div>
                          <div>What about dependencies ? I should use $
                            cabal install glade --only-dependencies and
                            than install glade from your branch ?</div>
                          <br>
                          Em quarta-feira, 15 de abril de 2015 05:48:42
                          UTC-3, Matthew Pickering escreveu:
                          <blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jean,
                            <p>You can try cloning my branch until a
                              push gets accepted upstream.</p>
                            <p><a href="https://github.com/mpickering/glade" rel="nofollow" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fmpickering%2Fglade\46sa\75D\46sntz\0751\46usg\75AFQjCNGJgS2RSOD_GrxrLLjZp_XUnnU6Jw';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fmpickering%2Fglade\46sa\75D\46sntz\0751\46usg\75AFQjCNGJgS2RSOD_GrxrLLjZp_XUnnU6Jw';return true;">https://github.com/mpickering/<wbr>glade</a></p>
                            <p>The fixes to get it working with 7.10
                              were fairly minimal.</p>
                            <p>Matt</p>
                            <p>On Wed, Apr 15, 2015 at 4:33 AM, Jean
                              Lopes <<a rel="nofollow">hawu...@gmail.com</a>>
                              wrote:<br>
                              > Hello, I am trying to install the
                              Glade package from hackage, and I<br>
                              > keep getting exit failure...<br>
                              ><br>
                              > Hope someone can help me solve it!<br>
                              ><br>
                              > What I did:<br>
                              > $ mkdir ~/haskell/project<br>
                              > $ cd ~/haskell/project<br>
                              > $ cabal sandbox init<br>
                              > $ cabal update<br>
                              > $ cabal install alex<br>
                              > $ cabal install happy<br>
                              > $ cabal install gtk2hs-buildtools<br>
                              > $ cabal install gtk #successful until
                              here<br>
                              > $ cabal install glade<br>
                              ><br>
                              > The last statement gave me the
                              following error:<br>
                              ><br>
                              > $ [1 of 2] Compiling SetupWrapper    
                              (<br>
                              > /tmp/cairo-0.12.5.3-5133/<wbr>cairo-0.12.5.3/SetupWrapper.<wbr>hs,<br>
                              > /tmp/cairo-0.12.5.3-5133/<wbr>cairo-0.12.5.3/dist/dist-<wbr>sandbox-acbd4b7/setup/<wbr>SetupWrapper.o<br>
                              > )<br>
                              > $<br>
                              > $ /tmp/cairo-0.12.5.3-5133/<wbr>cairo-0.12.5.3/SetupWrapper.<wbr>hs:91:17:<br>
                              > $     Ambiguous occurrence ‘die’<br>
                              > $     It could refer to either
                              ‘Distribution.Simple.Utils.<wbr>die’,<br>
                              > $                            
                               imported from<br>
                              > ‘Distribution.Simple.Utils’ at<br>
                              > /tmp/cairo-0.12.5.3-5133/<wbr>cairo-0.12.5.3/SetupWrapper.<wbr>hs:8:1-32<br>
                              > $                           or
                              ‘System.Exit.die’,<br>
                              > $                            
                               imported from ‘System.Exit’ at<br>
                              > /tmp/cairo-0.12.5.3-5133/<wbr>cairo-0.12.5.3/SetupWrapper.<wbr>hs:21:1-18<br>
                              > $ Failed to install cairo-0.12.5.3<br>
                              > $ [1 of 2] Compiling SetupWrapper    
                              (<br>
                              > /tmp/glib-0.12.5.4-5133/glib-<wbr>0.12.5.4/SetupWrapper.hs,<br>
                              > /tmp/glib-0.12.5.4-5133/glib-<wbr>0.12.5.4/dist/dist-sandbox-<wbr>acbd4b7/setup/SetupWrapper.o<br>
                              > )<br>
                              > $<br>
                              > $ /tmp/glib-0.12.5.4-5133/glib-<wbr>0.12.5.4/SetupWrapper.hs:91:<wbr>17:<br>
                              > $     Ambiguous occurrence ‘die’<br>
                              > $     It could refer to either
                              ‘Distribution.Simple.Utils.<wbr>die’,<br>
                              > $                            
                               imported from<br>
                              > ‘Distribution.Simple.Utils’ at<br>
                              > /tmp/glib-0.12.5.4-5133/glib-<wbr>0.12.5.4/SetupWrapper.hs:8:1-<wbr>32<br>
                              > $                           or
                              ‘System.Exit.die’,<br>
                              > $                            
                               imported from ‘System.Exit’ at<br>
                              > /tmp/glib-0.12.5.4-5133/glib-<wbr>0.12.5.4/SetupWrapper.hs:21:1-<wbr>18<br>
                              > $ Failed to install glib-0.12.5.4<br>
                              > $ cabal: Error: some packages failed
                              to install:<br>
                              > $ cairo-0.12.5.3 failed during the
                              configure step. The exception was:<br>
                              > $ ExitFailure 1<br>
                              > $ gio-0.12.5.3 depends on
                              glib-0.12.5.4 which failed to install.<br>
                              > $ glade-0.12.5.0 depends on
                              glib-0.12.5.4 which failed to install.<br>
                              > $ glib-0.12.5.4 failed during the
                              configure step. The exception was:<br>
                              > $ ExitFailure 1<br>
                              > $ gtk-0.12.5.7 depends on
                              glib-0.12.5.4 which failed to install.<br>
                              > $ pango-0.12.5.3 depends on
                              glib-0.12.5.4 which failed to install.<br>
                              ><br>
                              > Important: You can assume I don't
                              know much. I'm rather new to Haskell/cabal<br>
                              > ______________________________<wbr>_________________<br>
                              > Haskell-Cafe mailing list<br>
                              > <a rel="nofollow">Haskel...@haskell.org</a><br>
                              > <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fhaskell-cafe\46sa\75D\46sntz\0751\46usg\75AFQjCNH7sFgl7KfuDcDlaGGG3ip3kRaoIA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fhaskell-cafe\46sa\75D\46sntz\0751\46usg\75AFQjCNH7sFgl7KfuDcDlaGGG3ip3kRaoIA';return true;">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
                              ______________________________<wbr>_________________<br>
                              Haskell-Cafe mailing list<br>
                              <a rel="nofollow">Haskel...@haskell.org</a><br>
                              <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fhaskell-cafe\46sa\75D\46sntz\0751\46usg\75AFQjCNH7sFgl7KfuDcDlaGGG3ip3kRaoIA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fhaskell-cafe\46sa\75D\46sntz\0751\46usg\75AFQjCNH7sFgl7KfuDcDlaGGG3ip3kRaoIA';return true;">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
                            </p>
                          </blockquote>
                        </div>
                        <br>
                        <fieldset></fieldset>
                        <br>
                        <pre>______________________________<wbr>_________________
Haskell-Cafe mailing list
<a rel="nofollow">Haskel...@haskell.org</a>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fhaskell-cafe\46sa\75D\46sntz\0751\46usg\75AFQjCNH7sFgl7KfuDcDlaGGG3ip3kRaoIA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fhaskell-cafe\46sa\75D\46sntz\0751\46usg\75AFQjCNH7sFgl7KfuDcDlaGGG3ip3kRaoIA';return true;">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a>
</pre>
                      </blockquote>
                      <br>
                    </div>
                  </blockquote>
                </div>
              </div>
              <br>
              <fieldset></fieldset>
              <br>
              <pre>______________________________<wbr>_________________
Haskell-Cafe mailing list
<a rel="nofollow">Haskel...@haskell.org</a>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fhaskell-cafe\46sa\75D\46sntz\0751\46usg\75AFQjCNH7sFgl7KfuDcDlaGGG3ip3kRaoIA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fhaskell-cafe\46sa\75D\46sntz\0751\46usg\75AFQjCNH7sFgl7KfuDcDlaGGG3ip3kRaoIA';return true;">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a>
</pre>
            </blockquote>
            <br>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>______________________________<wbr>_________________
Haskell-Cafe mailing list
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="t0vNGtiybmIJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">Haskel...@haskell.org</a>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fhaskell-cafe\46sa\75D\46sntz\0751\46usg\75AFQjCNH7sFgl7KfuDcDlaGGG3ip3kRaoIA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fhaskell-cafe\46sa\75D\46sntz\0751\46usg\75AFQjCNH7sFgl7KfuDcDlaGGG3ip3kRaoIA';return true;">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a>
</pre>
    </blockquote>
    <br>
  </div>

</blockquote></div>