axiom: Web EDSL for running in browsers and server nodes using transient

[ library, mit, web ] [ Propose Tags ]

Client-and Server-side Haskell framework that compiles to javascript with the GHCJS compiler and run over Transient. See homepage

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS] 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.7
Dependencies base (>4.0 && <6.0), bytestring, containers, directory, ghcjs-base, ghcjs-perch (>=0.3.3), mtl, transformers, transient (>=0.5.1), transient-universe (>=0.4.1) [details]
License MIT
Author Alberto Gómez Corona
Category Web
Home page
Bug tracker
Source repo head: git clone
Uploaded by AlbertoCorona at 2017-03-20T15:50:56Z
Distributions NixOS:0.4.7
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 3569 total (4 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-03-20 [all 1 reports]

Readme for axiom-0.4.4

[back to package description]

Hackage Stackage LTS Stackage Nightly Build Status

Axiom (ghcjs-hplay)

For some examples, see the transient-examples repository: distributedApps.hs and webapp.hs

The source code can be executed in the commmand line if you have docker installed.


Axiom (the new name of ghcjs-hplay) is also the Web user interface of Transient. The Web functionality of transient will be called Axiom, like the cruise starship of Wall-e. Axiom is made to let you navigate the universe of nodes in the cloud trough your browser while you are comfortably seated in your hoverchair.

Unlike his predecessor, hplayground, Axiom has full integration with Transient and can run widgets that run code on the server, the client or both.

Axiom execute browser widgets that are reactive, can be composed monadically and algebraically (applicative, alternative, monoidal..). At the same time they participate in cloud computations. A widget can execute code in the server and, trough the server, in any node on the cloud using the same cloud primitives defined in transient-universe. The example applications include widgets that perform distributed map-reduce and federated chat servers as well as stream fibonacci numbers from server to client and from client to server.

To see how it integrates with Transient and how to create client-server applications, see the web paragraphs of the transient tutorial.

To see how to create client side applications and widgets (with no server code integration), look for hplayground package. Tutorial


Axiom is in the process of becoming a Server-side as well as Client-side library for creating Web application. The last release support page templates for the creation of server-side content.

In the future it will manage routes in the server side besides client side, and will generate dinamic HTML content in the server as well as in the client.