Go ProSign in

Algebraic data type in PureScript and Show instance

Vincent OrrVincent Orr

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.

You must be a Member to view code