Note: the source can be found here: <a href="http://www.students.cs.uu.nl/~jtkman/Application.hs">http://www.students.cs.uu.nl/~jtkman/Application.hs</a> (It&#39;s my own work, please tell me what I did wrong)<br><br>
<div class="gmail_quote">2009/4/16 Tsunkiet Man <span dir="ltr">&lt;<a href="mailto:temp.tsun@gmail.com">temp.tsun@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hello,</div>
<div> </div>
<div>I&#39;m trying to create a GUI by using wxHaskell. However I get the weird error message of &quot;Not in scope &quot;dt&quot;&quot;, well so I sorted them so that my so called &quot;dt&quot; was in scope, however it failed. Can someone please tell me how I can solve this error?</div>

<div> </div>
<div>           ... A lot of code that is not relevant in my opinion, if I&#39;m wrong please correct me and I will post my full code</div>
<div> </div>
<div>            --Debug text --<br>            dt &lt;- staticText f [text := &quot;Hello world!&quot;]<br>            <br>            imagePanel &lt;- panel f [position := Point 2 2, clientSize := Size 100 100, tooltip := &quot;This is a drawPanel&quot;, bgcolor := rgb 255 255 255]<br>
            set f [ clientSize := Size 700 500,<br>                    menuBar := [mFile, mHelp], <br>                    visible := True, <br>                    on (menu exit) := close f, <br>                    on (menu open) := onOpen f vFile ]<br>
 <br>                        <br>            return ()<br>            <br>            where <br>                onOpen :: Frame a -&gt; Var b -&gt; IO ()<br>                onOpen frame var = do   file &lt;- fileOpenDialog frame False True &quot;Open File&quot; [(&quot;PGM bestanden (*.pgm)&quot;,[&quot;*.pgm&quot;]),(&quot;Alle bestanden (*.*)&quot;,[&quot;*.*&quot;])] &quot;&quot; &quot;&quot;<br>
                                        case file of<br>                                            Nothing -&gt;      return ()<br>                                            Just file -&gt;    set dt [text := &quot;HELLO&quot;]<br>
                                                            return ()</div>
<div> </div>
<div>Thank you for your help, I really owe haskell-cafe.</div>
<div> </div>
<div>Greetings Tsunkiet Man</div></blockquote></div><br>