You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
473 B

  1. module State where
  2. import Board
  3. data Action = ActionDraw { act'currentPath :: Path }
  4. | ActionErase
  5. | ActionSave
  6. deriving Show
  7. data AppState = AppState { state'action :: Action
  8. , state'board :: Board
  9. , state'path :: String
  10. , state'offset :: Point
  11. , state'zoom :: Float
  12. }
  13. deriving Show