Go ProSign in

This Lesson is for Members

Subscribe today and get access to all lessons! Plus direct HD download for offline use, enhances transcripts, member comment forums, and iTunes "podcast" RSS feed. Level up your skills now!

Unlock This Lesson

Already subscribed? Sign In

Use Single-Constructor Union Types in Elm to Prevent Invalid Data

In this lesson you will learn to use Elm's type and module system to make invalid data unrepresentable, a robust approach to ensure that your data is always consistent!

You should know the basics of union types before tackling this content, they're explained here in Define simple union types in Elm.

You can follow along using any editor and Elm reactor; if you need help with the setup, watch Installing and setting up Elm.

You must be a Member to view code