<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">All right.&nbsp;<div>After a re-installation I could load my GTK2HS example successfully.&nbsp;</div><div>But I received another error. What is the meaning of that?</div><div><br></div><div>A wrong architecture?&nbsp;</div><div><br></div><div><div>Prelude&gt; :l guitest.hs&nbsp;</div><div>[1 of 1] Compiling Main &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ( guitest.hs, interpreted )</div><div>Ok, modules loaded: Main.</div><div>*Main&gt; main</div><div>Loading package transformers-0.2.2.0 ... linking ... done.</div><div>Loading package mtl-2.0.1.0 ... linking ... done.</div><div>Loading package array-0.3.0.2 ... linking ... done.</div><div>Loading package containers-0.4.0.0 ... linking ... done.</div><div>Loading package bytestring-0.9.1.10 ... linking ... done.</div><div>Loading package cairo-0.12.3.1 ... linking ... done.</div><div><b>Loading package glib-0.12.3.1 ... can't load .so/.DLL for: intl (dlopen(/usr/local/Cellar/gettext/0.18.1.1/lib/libintl.dylib, 9): no suitable image found. &nbsp;Did find:</b></div><div><b><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/Cellar/gettext/0.18.1.1/lib/libintl.dylib: mach-o, but wrong architecture)</b></div><div>*Main&gt;&nbsp;</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><b><u>This is the Content of guitest.hs</u></b></div><div><br></div><div><div>import Graphics.UI.Gtk</div><div>main :: IO ()</div><div>main = do</div><div>&nbsp; initGUI</div><div>&nbsp; window &lt;- windowNew</div><div>&nbsp; button &lt;- buttonNew</div><div>&nbsp; set window [ containerBorderWidth := 10,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;containerChild := button ]</div><div>&nbsp; set button [ buttonLabel := "Hello World" ]</div><div>&nbsp; onClicked button (putStrLn "Hello World")</div><div>&nbsp; onDestroy window mainQuit</div><div>&nbsp; widgetShowAll window</div><div>&nbsp; mainGUI</div></div><div><br></div><div><br></div><div>Thank you for any help !</div><div><br></div><div><br><div><div>Am 07.06.2012 um 09:40 schrieb Ivan Lazar Miljenovic:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 7 June 2012 18:09, Tanja Piechnick &lt;<a href="mailto:tanja.piechnick@stud.uni-due.de">tanja.piechnick@stud.uni-due.de</a>&gt; wrote:<br><blockquote type="cite">Thank you for your response.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">If I execute "ghc-pkg list gtk" I receive this output:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">ghc-pkg list gtk<br></blockquote></blockquote><blockquote type="cite">/usr/local/Cellar/ghc/7.0.4/lib/ghc-7.0.4/package.conf.d<br></blockquote><blockquote type="cite">/Users/tanjapiechnick/.ghc/i386-darwin-7.0.4/package.conf.d<br></blockquote><br>This means that you in fact _don't_ have the Haskell gtk package<br>installed (in the sense that GHC knows about it), which is why you<br>can't use it.<br><br><blockquote type="cite"><br></blockquote><blockquote type="cite">But "ghc-pkg check" gives me no results<br></blockquote><br>No, this in fact is good: it means that you don't have a problem with<br>your Haskell libraries.<br><br><blockquote type="cite"><br></blockquote><blockquote type="cite">&nbsp;if you have only very recently built gtk etc via mac homebrew, you need to<br></blockquote><blockquote type="cite">build the head version of gtk2hs and family<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Ok, and where can I get these informations?<br></blockquote><br>I'm not too sure about this; Carter can hopefully tell you more about<br>this (specifically which packages need to be built from HEAD, etc.).<br>But you're going to want to use the darcs repository at<br><a href="http://code.haskell.org/gtk2hs/">http://code.haskell.org/gtk2hs/</a> .<br><br>-- <br>Ivan Lazar Miljenovic<br><a href="mailto:Ivan.Miljenovic@gmail.com">Ivan.Miljenovic@gmail.com</a><br>http://IvanMiljenovic.wordpress.com<br><br></div></blockquote></div><br></div></body></html>