codeworld-api-0.8.1: Graphics library for CodeWorld

Safe HaskellNone
LanguageHaskell2010

CodeWorld.App

Description

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

Documentation

data Rule :: * -> * #

eventRule :: (Event -> state -> state) -> Rule state #

pictureRule :: (state -> Picture) -> Rule state #

multiEventRule :: (Int -> Event -> state -> state) -> Rule state #

multiPictureRule :: (Int -> state -> Picture) -> Rule state #

subrule :: (a -> b) -> (b -> a -> a) -> Rule b -> Rule a #

rules :: [Rule state] -> Rule state #

applicationOf :: world -> [Rule world] -> IO () #

unsafeMultiApplicationOf :: Int -> (StdGen -> state) -> [Rule state] -> IO () #