Haskell Tutorial


Haskell Tutorial

Haskell is a widely used purely functional language. Functional programming is based on mathematical functions. Besides Haskell, some of the other popular languages that follow Functional Programming paradigm include: Lisp, Python, Erlang, Racket, F#, Clojure, etc. Haskell is more intelligent than other popular programming languages such as Java, C, C++, PHP, etc. In this tutorial, we will discuss the fundamental concepts and functionalities of Haskell using relevant examples for easy understanding.

Audience

This tutorial has been prepared for beginners to let them understand the basic concepts of functional programming using Haskell as a programming language.

Prerequisites

Although it is a beginners’ tutorial, we assume that the readers have a reasonable exposure to any programming environment and knowledge of basic concepts such as variables, commands, syntax, etc.

Compile/Execute Haskell Programs

For most of the examples given in this tutorial, you will find Try it option, so just make use of it and enjoy your learning.

Try following example using Try it option available at the top right corner of the below sample code box −

main = putStrLn "Hello World"



Advertisements