This is a literate Haskell page: you can load it directly into ghci by following these steps. In this note, we’ll look at how to define our own data types in Haskell.