All posts in category #Compile to JavaScript

Leaving implementation details for later with unsafeCrashWith in PureScript

Once we're happy with the overall design of our code, all that is left is the actual implementation
Focusing on implementation details might be a waste of time if we just want to test an idea out. In these rare cases, the unsafeCrashWith function defined in the Partial.Unsafe module comes in handy

Pattern match multiple values without a Tuple in PureScript

We can pattern match multiple values with no extra imports, natively
To pattern match multiple values in PureScript, it's very tempting to wrap them with Tuple data constructor. That's not really necessary.

Integrate PureScript with your JavaScript application

Integrating PureScript code with JavaScript doesn't have to be a difficult task, and I'm going to walk you through it step by step.

ReasonML - Http Server in Node.js

In this post, I'm going to show how to leverage ReasonML's powerful javascript interop in order to create bindings for the http module from Node.js.

ReasonML / BuckleScript JavaScript Interop

This note shows my amazement with ReasonML's javascript interop by comparing code written in the former with the produced output in the latter.