Skip to content

Instantly share code, notes, and snippets.

@mshroyer
Created November 1, 2010 03:27
Show Gist options
  • Save mshroyer/657559 to your computer and use it in GitHub Desktop.
Save mshroyer/657559 to your computer and use it in GitHub Desktop.
gtk2hs hello world
import Graphics.UI.Gtk
main :: IO ()
main = do
initGUI
window <- windowNew
label <- labelNew $ Just "Hello, world from gtk2hs!"
set window [ containerBorderWidth := 20,
containerChild := label ]
onDestroy window mainQuit
widgetShowAll window
mainGUI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment