3 -- Copyright : (c) 2008 Bertram Felgenhauer
6 -- Maintainer : Bertram Felgenhauer <int-e@gmx.de>
7 -- Stability : experimental
8 -- Portability : portable
10 -- This module is part of Haskell PGMS.
22 import qualified Graphics
.UI
.Gtk
as G
28 data Globals
= Globals
{
29 gBoard
:: G
.DrawingArea
,
30 gStatusbar
:: G
.Statusbar
,
36 sStrategy
:: Strategy
,
37 sBoard
:: Maybe Board
,
38 sStop
:: Maybe (IO ()),
39 sPreviousConfigItem
:: Maybe G
.RadioMenuItem
42 initState strats
= State
{
44 sStrategy
= head strats
,
47 sPreviousConfigItem
= Nothing