r/purescript • • Feb 10 '17

Is PureScript a Full JavaScript Replacement?

I'm not a web developer, so I'm not familiar with these things.

Is it currently possible to build a sophisticated front end entirely in PureScript? Essentially, a full replacement for needing to write JavaScript? I was speaking with a web developer who claimed that you'd likely have to write portions of your front end in basic JavaScript and then interact with it in PureScript. Is this the case?

9 Upvotes

14 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Feb 13 '17

Pulp has a pretty good readme that should explain how to structure PureScript projects, build them and embed them in HTML. It has a --watch mode for your conveninece.

Halogen v0.10 has a short guide that will be much better in the upcoming v1.0 release, but it is currently being worked on. There are many examples, and each one of them has a readme on what to run to build them so you can start hacking on them.

Unfortunately, there aren't many tutorials like "how to build a to-do SPA" for Halogen. I think I saw a tutorial for routing, though.