codeworld-api: Graphics library for CodeWorld

[ library, unclassified ] [ Propose Tags ]

This module provides the drawing code for CodeWorld. It is heavily inspired by Gloss, but modified for consistency and pedagogical reasons.

It comes with two backends. When compiled with GHCJS, it uses the JavaScript FFI to run on When compiled with GHC, it uses the blank-canvas package to provide a webpage consisting of just a panel locally. This way, the same program that runs on the CodeWorld server can also be run locally.

Dependencies base (>=4.9 && <4.11), blank-canvas (==0.6.*), cereal (>=0.5.4 && <0.6), cereal-text (>=0.1.0 && <0.2), codeworld-game-api, codeworld-prediction, containers (>=0.5.7 && <0.6), ghcjs-base, ghcjs-dom (==0.8.*), ghcjs-prim, hashable (>=1.2.4 && <1.3), mtl (>=2.2.1 && <2.3), random (==1.1.*), random-shuffle (>=0.0.4 && <0.1), text (>=1.2.2 && <1.3), time (>=1.6.0 && <1.9), transformers [details]
License LicenseRef-Apache
Copyright (c) 2018, The CodeWorld Authors
Author The CodeWorld Authors
Maintainer Chris Smith <>
Revised Revision 2 made by HerbertValerioRiedel at Sat May 19 15:37:30 UTC 2018
Uploaded by ChrisSmith at Wed Feb 21 08:12:27 UTC 2018
Distributions NixOS:
Downloads 1326 total (55 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-02-21 [all 1 reports]
Hackage Matrix CI




Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees