Algebraic data type in PureScript and Show instance

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.

Please take a moment to tell your friends:

You must be a PRO Member to view code