All posts in category #PureScript

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.