The aim of this video is to introduce how to install Haskell on your computer.
- [Instructor] In this video, we're going to look at installing Haskell onto your machine to start learning and developing with it. So, first of all, we'll see where to download Haskell from. We'll have a look at the different ways to install it and we'll take a close look at the Haskell tool stack. So, let's start on the website, Haskell.org, and you can see that this is a hub of information about the Haskell programming language.
Lots of information about the community and documentation, and, of course, where to download it. So, let's go ahead and click on the downloads link now. You can see that there are three recommended ways to download and install the Haskell tool chain. Minimal installers, which are a global installation of GHC and Cabal, which is one of the original package installation and build tools.
There's Stack, which is meant to be a more modern package installation method, which allows you to version and manage your dependencies on a project-by-project basis, and you may be used to working in this way if you've developed with Node or, for example, in Python, using virtualenv, or in Clojure using Leiningen. And, finally, there's the Haskell platform, which is meant to be a batteries-included, single-installer solution.
Now, if you have a strong preference on these, you can go ahead and install Haskell in whichever way you would prefer, but I'm going to make a recommendation, and this is the approach that I'll be following in all the examples in this course, and I'm going to recommend that we use the Stack solution because I think that having a project-by-project way of installing your dependencies is very powerful and makes it very easy to collaborate with other developers so that they can easily install the libraries that you have recommended for your projects without any risk of conflicts or problems, so I think it's really powerful way of doing things, and it also is very easy to use.
So, I'm going to click on this link here for Stack. There are instructions here for Ubuntu Linux, OSX and Windows. In the next three videos, I'm going to go through those options in some detail, so video 1.3 will show how to install Haskell onto OSX, 1.4 we'll have a look at Windows, and, finally, in 1.5, we will install Haskell onto Ubuntu Linux.
If you'd like anymore information on how to install Haskell on your specific operating system, then do check out those videos. We'll then move on to section two, getting started with Haskell, where we'll look at the language and what we can do in the interactive developer, and we'll start to write our first complete programs.
Note: This course was created by Packt Publishing. We are pleased to host this training in our library.
- Discovering Haskell with GHCI
- Haskell datatypes and functions
- Using higher order functions for data manipulation and code reuse
- Editing Haskell source code
- Creating a project with Stack
- Writing and conducting tests