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 3
Developing a Word Game
Content Locked
Section 1
Creating a Project with Stack
To make sure we're taking advantage of a solid structure to develop a more complicated application on, we'll create a project with 'stack.' We'll see how to structure our main module, library functions, and tests and look at how to develop, compile, and test the project. - Build a project with 'stack new' and see how to interact with it in the 'ghci' interpreter - Compile the project with 'stack build' and see how to rename and optimize the executable - Test our code using HSpec (this is an external dependency, but adding it to the project is trivial with Stack)