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 5
Some Final Polish
While we can now play our game, it still has a few rough edges. We'll now polish off a few of these. Frist, we want to create a random jumble of characters in the part of the grid that we're currently displaying with "underscore" characters. Next, we want to highlight each of the found words by uppercasing them. - Learn how a pure language such as Haskell does random number generation with the IO monad and RandomGen values - Create a random grid using randomRs and stitch it to the grid using our zipOverGridWith function - Highlight the words by checking whether each cell exists in a set of currently found cells