Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Algebraic data type in PureScript and Show instance

    0.11.7 - ^0.12

    In this lesson, you’ll learn how PureScripts compiler will enforce pattern matching when we create data constructors with an Algebraic Data Type.

    You’ll then learn how to create show functions for these data constructors that we just instantiated.