Created
          November 1, 2010 03:27 
        
      - 
      
- 
        Save mshroyer/657559 to your computer and use it in GitHub Desktop. 
    gtk2hs hello world
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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