shine-examples: Examples for the shine package

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

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

[Skip to Readme]


Versions 0.1, 0.1
Change log None available
Dependencies base (>=4.11 && <4.13), containers (>=0.6 && <0.7), ghcjs-dom (>=0.9 && <0.10), keycode (>=0.2 && <0.3), random (>=1.1 && <1.2), shine (>=0.2 && <0.3) [details]
License MIT
Maintainer Francesco Gazzetta <>
Category Web, Graphics, Javascript, Game
Home page
Bug tracker
Uploaded by fgaz at 2020-01-04T15:54:23Z


Maintainer's Corner

Package maintainers

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).