Skip to content

Commit

Permalink
tidy only
Browse files Browse the repository at this point in the history
  • Loading branch information
nbogie committed Mar 30, 2013
1 parent 110afb5 commit b47cb9a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Gui.hs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,14 @@ type ClickHandler = Event -> GS -> GS
-- (board in play, undo list, fresh boards, log msgs)
data GameMode = SplashScreen | GamePlay deriving (Show, Eq)

data GS = GS{ b::Board, undos::[Board], nextBoards::[Board], logs::[String], clickHdlr::ClickHandler, hilitPosition :: [Position], gameMode :: GameMode}
data GS = GS { b :: Board
, undos :: [Board]
, nextBoards :: [Board]
, logs :: [String]
, clickHdlr :: ClickHandler
, hilitPosition :: [Position]
, gameMode :: GameMode
}
resetHandlers gs = gs { clickHdlr = handleSelect, hilitPosition = [] }

handleInputInSplash :: Event -> GS -> GS
Expand Down

0 comments on commit b47cb9a

Please sign in to comment.