1 00:00:00,030 --> 00:00:03,260 hello everyone my name is George E and the I'm one of the A's 2 00:00:03,260 --> 00:00:07,970 this course and in this video I want to show you how to install gcc 3 00:00:07,970 --> 00:00:11,099 and importing particular Haskell platform 4 00:00:11,099 --> 00:00:15,259 so to install first we have to find the Haskell platform 5 00:00:15,259 --> 00:00:18,820 let us Google that and 6 00:00:18,820 --> 00:00:24,080 its me the first it and on this website we're 7 00:00:24,080 --> 00:00:28,349 offered the choice of system that we want to install on I'm using a Mac right 8 00:00:28,349 --> 00:00:28,859 now 9 00:00:28,859 --> 00:00:32,700 so I'll click on a Mac and 10 00:00:32,700 --> 00:00:37,010 the download link is up here has platform 2014 11 00:00:37,010 --> 00:00:40,680 I'm downloading it now effect they have 12 00:00:40,680 --> 00:00:46,289 actually already downloaded this file so that's just go ahead in 13 00:00:46,289 --> 00:00:49,480 click on it down and starts by double clicking on it 14 00:00:49,480 --> 00:00:52,489 and then we are presented with the usual menu 15 00:00:52,489 --> 00:00:55,649 click on Continue takes 16 00:00:55,649 --> 00:00:59,140 more than a good space which arm which we are more than happy to 17 00:00:59,140 --> 00:01:02,870 use for Haskell and then we click Install 18 00:01:02,870 --> 00:01:06,260 mean 19 00:01:06,260 --> 00:01:10,630 password authorize haskell to install 20 00:01:10,630 --> 00:01:17,630 and wait for it to finish 21 00:01:19,950 --> 00:01:23,090 and there it is no sorry there existed a 22 00:01:23,090 --> 00:01:27,120 the documentation page for the Haskell platform where you can read up on 23 00:01:27,120 --> 00:01:31,100 all the ins and outs and things you can do it 24 00:01:31,100 --> 00:01:34,780 so let's start with the some simple examples 25 00:01:34,780 --> 00:01:39,790 I have to prompt open here 26 00:01:39,790 --> 00:01:43,420 on one I will open up my editor 27 00:01:43,420 --> 00:01:48,900 which is of course yeah I I have a file called 28 00:01:48,900 --> 00:01:53,550 this dot HS recall that 8 HS is the extension for Haskell files 29 00:01:53,550 --> 00:01:56,560 and in this file I have be fine 30 00:01:56,560 --> 00:02:00,150 two functions as mentioned in the lectures double 31 00:02:00,150 --> 00:02:03,520 and quadruple so now I would like to 32 00:02:03,520 --> 00:02:08,740 see them in action so it typed UCI test that HS 33 00:02:08,740 --> 00:02:11,740 and we see you love 34 00:02:11,740 --> 00:02:16,500 text being printed out but the most important thing is right here 35 00:02:16,500 --> 00:02:20,280 okay modules those main so now we can 36 00:02:20,280 --> 00:02:24,680 star testing the functions made simply typing in the name 37 00:02:24,680 --> 00:02:28,880 double it's a then which makes it twenty 38 00:02:28,880 --> 00:02:33,260 and also know that you can use tab completion 39 00:02:33,260 --> 00:02:36,910 for quadruple 30 and a good 40 00:02:36,910 --> 00:02:40,300 120 so 41 00:02:40,300 --> 00:02:43,340 let's go back to the at their we have on the left 42 00:02:43,340 --> 00:02:48,470 and simply add to new functions as we've also seen the lecture 43 00:02:48,470 --> 00:02:51,980 in this case pictorial an average a.m. 44 00:02:51,980 --> 00:02:55,720 we worst JC I still running in our case 45 00:02:55,720 --> 00:03:00,250 and all we need to do load the new functions is type 46 00:03:00,250 --> 00:03:03,920 colon reload and Jaci tells us 47 00:03:03,920 --> 00:03:07,790 that everything went okay so now we can go ahead then 48 00:03:07,790 --> 00:03:11,900 the these functions at sea 49 00:03:11,900 --> 00:03:17,420 Victoria with then Corey 50 00:03:17,420 --> 00:03:21,959 you something's not going right 51 00:03:21,959 --> 00:03:25,810 me my bad have been saved 52 00:03:25,810 --> 00:03:30,040 the file yet so do need to save it before it can be reloaded 53 00:03:30,040 --> 00:03:34,810 I reload once again modules loaded 54 00:03:34,810 --> 00:03:38,660 know it right pictorial then and I get the right answer 55 00:03:38,660 --> 00:03:41,900 a try at average 56 00:03:41,900 --> 00:03:45,280 love this %uh 12 57 00:03:45,280 --> 00:03:49,080 3 4&5 and I get the number three 58 00:03:49,080 --> 00:03:53,020 so this is a very simple introduction as 59 00:03:53,020 --> 00:03:58,430 to how to install Haskell platform how to use it how to load files in 60 00:03:58,430 --> 00:04:01,890 and out to start editing thank you