codeworld-api-0.8.1: Graphics library for CodeWorld

Safe HaskellNone
LanguageHaskell2010

CodeWorld.App2

Description

Warning: This is an experimental API. It can change at any time.

Documentation

data Application :: * -> * #

defaultApplication :: state -> Application state #

withEventHandler :: (Event -> state -> state) -> Application state -> Application state #

withPicture :: (state -> Picture) -> Application state -> Application state #

withMultiEventHandler :: (Int -> Event -> state -> state) -> Application state -> Application state #

withMultiPicture :: (Int -> state -> Picture) -> Application state -> Application state #

subapplication :: (a -> b) -> (b -> a -> a) -> Application b -> (b -> a) -> Application a #

applicationOf :: Application world -> IO () #