shine-examples: Examples for the shine package

[ game, graphics, javascript, mit, web ] [ Propose Tags ]

This package contains some examples of use of the shine package, from animations to a simple game.

[Skip to Readme]
Versions [faq] 0.1
Dependencies base (>=4.11 && <4.13), containers (==0.6.*), ghcjs-dom (==0.9.*), keycode (==0.2.*), random (==1.1.*), shine (==0.2.*) [details]
License MIT
Maintainer Francesco Gazzetta <>
Category Web, Graphics, Javascript, Game
Home page
Bug tracker
Uploaded by fgaz at 2020-01-04T15:55:30Z
Distributions NixOS:0.1
Executables mountaincar, spaceinvaders, simple-interaction, animated-shapes
Downloads 167 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2020-01-04 [all 2 reports]


Maintainer's Corner

For package maintainers and hackage trustees

Readme for shine-examples-0.1

[back to package description]


Examples for the shine library.


You need ghcjs

A great way of building ghcjs packages is to use the reflex platform



A lot of different shapes, some of them changing color, size and other properties with time.

Note: it will not work without manually copying image.png next to the index.html file. See the "handling assets" section in the shine README for more info.


An extremely simple user interaction: a black square appears on left mouse down and disappears on mouse up.


This is a human-controlled version of the Mountain car problem (a standard testing domain in Reinforcement learning). Use the left/right keys to control the car.


This is a simplified version of the Space Invaders video game. Use the left/right keys to move the laser cannon and the space key to fire (or to restart the game).