PureScript

A small strongly typed programming language with expressive types that compiles to Javascript, written in and inspired by Haskell.

Model problems using Algebraic Data Types (ADTs)

Algebraic Data Types are a fundamental part of modeling data in Purescript. In this lesson, we'll look at some common methods of defining and using them.

Justin Woo
7:13

Use Sets with Ord Typeclass instances

In Purescript, we can use set data structures using Purescript-Set, but many of its functions come with an Ord typeclass constraint. In this lesson, we'll learn how to understand the typeclass cons...

Justin Woo
5:30

Automatically de/serialize JSON with Purescript-Foreign-Generics

Deserializing and serializing JSON manually is a boring, error-prone way to be able to handle JSON. This example shows how you can use Generics in Purescript to automatically derive de/serializers ...

Justin Woo
4:09

Using PureScript's psci with pulp

PureScript has a REPL (a console you can type expressions into) called pulp. In this lesson, we will show how you can use pulp to test your modules and functions. We will use code as we would in a ...

Vincent Orr
2:39

Use Purescript and pulp to make hello world

In this lesson, we will learn how to run Purescript with a simple log statement. We use pulp to compile Purescript down to readable javascript.

Vincent Orr
2:16

Browse all PureScript lessons.

showing All 5 lessons...

Model problems using Algebraic Data Types (ADTs)

Use Sets with Ord Typeclass instances

Automatically de/serialize JSON with Purescript-Foreign-Generics

Using PureScript's psci with pulp

Use Purescript and pulp to make hello world

Model problems using Algebraic Data Types (ADTs)

7:13 purescript

Algebraic Data Types are a fundamental part of modeling data in Purescript. In this lesson, we'll look at some common methods of defining and using them.

Use Sets with Ord Typeclass instances

5:30 purescript

In Purescript, we can use set data structures using Purescript-Set, but many of its functions come with an Ord typeclass constraint. In this lesson, we'll learn how to understand the typeclass constraints on a function and how to create instances of typeclasses.

Automatically de/serialize JSON with Purescript-Foreign-Generics

4:09 purescript

Deserializing and serializing JSON manually is a boring, error-prone way to be able to handle JSON. This example shows how you can use Generics in Purescript to automatically derive de/serializers so that once you've written your type definition, you only need a few lines of code to handle JSON.

purescript tutorial about Using PureScript's psci with pulp

Using PureScript's psci with pulp

2:39 purescript

PureScript has a REPL (a console you can type expressions into) called pulp. In this lesson, we will show how you can use pulp to test your modules and functions. We will use code as we would in a file, like importing modules. We will also use REPL specific syntax like :type (or :t for short) to view type definitions and :reset to re-compile changes to our files.

Technologies talked about in this lesson:

Pulp by @bodil
Psci
Purescript

purescript tutorial about Use Purescript and pulp to make hello world

Use Purescript and pulp to make hello world

2:16 purescript

In this lesson, we will learn how to run Purescript with a simple log statement. We use pulp to compile Purescript down to readable javascript.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?