|
From: Sebastian S. <seb...@gm...> - 2005-01-12 16:25:20
|
On Wed, 12 Jan 2005 16:54:18 +0100, Dmitri Pissarenko
<mai...@da...> wrote:
> GHCi crashed with following error messages:
> <snip>
> PS: Here is the code of the application
>
> module Main where
>
> import Graphics.UI.WXCore
>
> main :: IO ()
> main
> = run gui
>
> gui :: IO ()
> gui
> = do frame <- frameCreateTopFrame "Hello World"
> windowShow frame
> windowRaise frame
> return ()
> --
Although I'm not sure if it's related to your problem, you probably
don't want to work with the low-level "core" wx functionality.
Something like this might work (just off the top of my head, not tested):
import Graphics.UI.WX
main = start gui
gui = do f <- frame [text := "Hello World", resizable := True]
b <- button f [ text := "Quit", on command := close f]
set f [layout := column 5 [label "A Button: ", widget b]]
--
Sebastian Sylvan
+46(0)736-818655
UIN: 44640862
|