September 2017
Beginner to intermediate
396 pages
9h 46m
English
We will now look at different parts of the Main.hs program that we just created to understand the structure of a typical Haskell program. For convenience, the screenshot of the program is attached here:

The first line means that we are defining a module called Main. The source that follows where is contained in this module. In the absence of any specifications, all the functions defined in the module are exported, that is, they will be available to be used by importing the Main module.
The line number 3 (in the screenshot) that starts with -- is a comment. -- is used to represent a single-line comment. It can appear ...
Read now
Unlock full access