A small strongly typed programming language with expressive types that compiles to Javascript, written in and inspired by Haskell.
An experimental Clojure backend for PureScript
- This is a quick, first-pass effort, so not much work has gone into it
- Has been successfully run against a few tests from
examples\passing
- Everything you need to build PureScript
- Clojure via Leiningen
- Versions of the PureScript standard modules. Currently, the following modules have been ported, all found in repo https://github.com/andyarvanitis:
- purescript-prelude
- purescript-eff
- purescript-console
Note that you must use branch clojure
for each of these. Also note that they are based on the ongoing 0.8.x module overhaul, so some tests won't work. Any modules that do not require FFI can also be used (or at least tried).
- Build purescript itself in the usual way, but using code from this repo
- Install Leiningen
- Build your PureScript program source however you typically do, but use
plc
instead ofpsc
, and make sure to use the versions of the standard modules mentioned above cd
to youroutput
directory- Execute
lein run
to run your program,lein repl
, orlein uberjar
to AOT compile, etc. (normal Clojure stuff)