Skip to content

Instantly share code, notes, and snippets.

@dpwiz
Created November 28, 2012 05:48
Show Gist options
  • Save dpwiz/4159280 to your computer and use it in GitHub Desktop.
Save dpwiz/4159280 to your computer and use it in GitHub Desktop.
import Graphics.UI.Gtk
main :: IO ()
main = do
initGUI
window <- windowNew
button <- buttonNew
set window [ containerBorderWidth := 10
, containerChild := button ]
set button [ buttonLabel := "Hello World" ]
onClicked button $ putStrLn "Hello World"
onDestroy window mainQuit
widgetShowAll window
mainGUI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment