Installing on Windows
Instructions for installing on Windows
- Make sure you have GHC 6.6.1 installed. This exact version of GHC is required. If you cannot install either version of GHC you can either use an older version of Gtk2Hs (eg 0.9.11 worked with GHC-6.4.2 and 6.6) or build from source with any supported version of GHC.
- download and run the Gtk2Hs installer gtk2hs-0.9.12.exe
- you can select to install the demo source code and the API documentation
You’re done! You will now be able to compile and run Haskell programs that use Gtk2Hs.
You might like to start by compiling some of the demo programs in the
demos folder. For example to compile the noughts and crosses demo, open a console window, change directory to the
noughty folder and use
ghc --make to compile the demo:
cd "C:\Program Files\Gtk2Hs\demos\noughty"
ghc --make Noughty.hs
Noughty.exe in the same folder (or
main.exe if you’re using GHC 6.4.2). When you run this .exe it pops up a console window; you can read about how to stop that happening.
Note that GHCi support is available in this release.