hello everyone my name is George E and the I'm one of the A's
this course and in this video I want to show you how to install gcc
and importing particular Haskell platform
so to install first we have to find the Haskell platform
let us Google that and
its me the first it and on this website we're
offered the choice of system that we want to install on I'm using a Mac right
now
so I'll click on a Mac and
the download link is up here has platform 2014
I'm downloading it now effect they have
actually already downloaded this file so that's just go ahead in
click on it down and starts by double clicking on it
and then we are presented with the usual menu
click on Continue takes
more than a good space which arm which we are more than happy to
use for Haskell and then we click Install
mean
password authorize haskell to install
and wait for it to finish
and there it is no sorry there existed a
the documentation page for the Haskell platform where you can read up on
all the ins and outs and things you can do it
so let's start with the some simple examples
I have to prompt open here
on one I will open up my editor
which is of course yeah I I have a file called
this dot HS recall that 8 HS is the extension for Haskell files
and in this file I have be fine
two functions as mentioned in the lectures double
and quadruple so now I would like to
see them in action so it typed UCI test that HS
and we see you love
text being printed out but the most important thing is right here
okay modules those main so now we can
star testing the functions made simply typing in the name
double it's a then which makes it twenty
and also know that you can use tab completion
for quadruple 30 and a good
120 so
let's go back to the at their we have on the left
and simply add to new functions as we've also seen the lecture
in this case pictorial an average a.m.
we worst JC I still running in our case
and all we need to do load the new functions is type
colon reload and Jaci tells us
that everything went okay so now we can go ahead then
the these functions at sea
Victoria with then Corey
you something's not going right
me my bad have been saved
the file yet so do need to save it before it can be reloaded
I reload once again modules loaded
know it right pictorial then and I get the right answer
a try at average
love this %uh 12
3 4&5 and I get the number three
so this is a very simple introduction as
to how to install Haskell platform how to use it how to load files in
and out to start editing thank you