Chapter 4
Polishing the Word Game
Section 2
Fleshing Out the Grid Model
Using the grid coordinates from the previous video, we will explore how to declare a Cell datatype and incorporate that into our code. This will also give us a good experience of refactoring code. We'll do this using Haskell's type system. - Declare a Cell data type and incorporate the grid coordinates we created in the previous video - We will now have several different types of Grid, so refactor the type synonym to account for this - Finally, we now need to refactor all of our existing code to use our new types; so, do this in an iterative way, using ghc's error messages to help us