This Lesson is for PRO Members.

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

UNLOCK THIS LESSON

Already subscribed? Sign In

HIDE PLAYLIST

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.