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 http://code.world/. 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.

Modules

[Last Documentation]

  • CodeWorld
    • CodeWorld.App
    • CodeWorld.App2
    • CodeWorld.Image
    • CodeWorld.Parameter
    • CodeWorld.Reflex
    • CodeWorld.Sketches

Flags

Manual Flags

NameDescriptionDefault
strictbuild

Fail on warnings

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

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

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.1, 0.2.0.0, 0.2.1.0, 0.2.2.0, 0.2.2.1, 0.2.3, 0.2.4, 0.2.5, 0.3, 0.3.1, 0.4.0, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.8.1
Dependencies aeson (>=1.4.3 && <1.5), base (>=4.11 && <5), base64-bytestring (>=1.0 && <1.1), blank-canvas (>=0.6 && <0.8), bytestring (>=0.9 && <0.11), cereal (>=0.5.4 && <0.6), cereal-text (>=0.1.0 && <0.2), codeworld-game-api, codeworld-prediction, containers (>=0.5.7 && <0.7), deepseq (>=1.4 && <1.5), dependent-sum (>=0.4 && <0.6.2), ghc-prim (>=0.3.1 && <0.8), ghcjs-base, ghcjs-dom (>=0.9 && <0.9.4), ghcjs-prim, hashable (>=1.2.4 && <1.4), monad-loops (>=0.3 && <0.5), mtl (>=2.2.1 && <2.3), random (>=1.1 && <1.2), ref-tf (>=0.4 && <0.5), reflex (>=0.6.3 && <0.9), template-haskell (>=2.8 && <2.18), text (>=1.2.2 && <1.3), time (>=1.8 && <2.0), transformers, witherable (>=0.3 && <0.4) [details]
License LicenseRef-Apache
Copyright (c) 2020, The CodeWorld Authors
Author The CodeWorld Authors
Maintainer Chris Smith <cdsmith@gmail.com>
Revised Revision 4 made by ChrisSmith at 2021-04-23T03:58:14Z
Bug tracker https://github.com/google/codeworld/issues
Uploaded by ChrisSmith at 2020-11-19T23:24:38Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 10492 total (76 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2020-11-20 [all 2 reports]