Book Image

Learning Haskell Programming [Video]

By : Hakim Cassimally
Book Image

Learning Haskell Programming [Video]

By: Hakim Cassimally

Overview of this book

Haskell is a powerful and well-designed functional programming language designed to work with complex data. Its emphasis on "purity" makes it easier to create rock-solid applications which stay maintainable and error-free even as they grow in scale. This video would begin with the fundamentals and building blocks of Haskell programming language with special emphasis on functional programming. It will be covering how Haskell variables, syntax work alongwith Haskell datatypes and functions. You will learn how to solve programming problems while creating an application with hands-on experience. You will then move on to learning writing expressions and high-order functions. At the end of the video, you will be able to build a complete application with Haskell alongwith learning the important functionalities.
Table of Contents (4 chapters)
Chapter 4
Polishing the Word Game
Content Locked
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