Use Purescript and pulp to make hello world
lessonDuration 2m 16sFree
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.
Browse
Find courses, lessons, articles, talks, and podcasts.
7 results for "purescript"
lessonDuration 2m 16sFree
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.
lessonDuration 3m 17sFree
In this lesson, we'll see how we can get JSON decoding for free in PureScript using the Simple-JSON library. Because PureScript is a pretty powerful language, we can just declare what type we want the result to go into and get it for free!
lessonDuration 8mFree
Sanctuary.js is a functional programming library for JavaScript. It's similar to Ramda, but more strict and includes extra features, like the error handling monads Maybe & Either. It's also similar to Folktale, but primarily takes influence from Haskell & PureScript instead of Scala. In this lesson, we use Sanctuary's Traverse and the Maybe monad to safely process lists of data while gaining insight into the relationship between Traverse & Sequence.
lessonDuration 7m 13sFree
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.
lessonDuration 5m 30sFree
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.
lessonDuration 4m 9sFree
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.
lessonDuration 2m 39sFree
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 `import`ing 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](https://github.com/bodil/pulp) by [@bodil](https://twitter.com/bodil) [Psci](https://github.com/purescript/purescript/wiki/PSCi) [Purescript](https://github.com/purescript/purescript)