Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 16 lines (11 sloc) 0.32 kB
2b9deb7 oh my god
Will Thompson authored
1 module Main where
2
14d78a0 It works!
Will Thompson authored
3 import Control.Monad (forM_)
ade7104 @0xdaf make dump tool take name of typelib
0xdaf authored
4 import System.Environment (getArgs)
5
2b9deb7 oh my god
Will Thompson authored
6 import Graphics.UI.Gtk
7 import System.Glib.GError
8
ade7104 @0xdaf make dump tool take name of typelib
0xdaf authored
9 import GI.API
10
2b9deb7 oh my god
Will Thompson authored
11 main = handleGError (\(GError dom code msg) -> print (dom, code, msg)) $ do
12 initGUI
ade7104 @0xdaf make dump tool take name of typelib
0xdaf authored
13 [name] <- getArgs
14 apis <- loadAPI name
4a56d10 @0xdaf move printing code to Main
0xdaf authored
15 forM_ apis $ \api -> print api
Something went wrong with that request. Please try again.