Sorry for interuption. In some days later, I have to work with Graphs.UI, too. So I tried to run your example below, but I met a compiled error Prelude> :load graph.hs Reading file "graph.hs": Reading file "Graphics.UI.WX": ERROR "Graphics.UI.WX" - Unable to open file "Graphics.UI.WX" I guess the error happened because my hugs (and ghci) do not have WX, or I do not give some options to the command for compiling. Is it right ? Thank you for your consideration. On 11/28/05, mempko <mempko@gmail.com> wrote:
Hello, I have a program that just will not compile and I cannot figure out why. I am starting out with wxHaskell but keep getting certain errors. Here is the source:
------------------------- module Main where
import Graphics.UI.WX
main :: IO () main = start hello
hello :: IO () hello = do f <- frame [text := "Super Window"] lab <- staticText f [text:= "Hello"] quit <- button f [text:= "Quit", on command := close f] touch <- button f [text:= "Touch Me", on command := set quit [text:= "Yay"]]
set f [layout:= floatCenter (widget lab) $ floatCenter (widget touch) $ floatCenter (widget quit)]