https://wiki.haskell.org/api.php?action=feedcontributions&user=Ben.kavanagh&feedformat=atomHaskellWiki - User contributions [en]2024-03-28T19:41:11ZUser contributionsMediaWiki 1.35.5https://wiki.haskell.org/index.php?title=Informatics_1_Windows_Installation&diff=23496Informatics 1 Windows Installation2008-10-16T10:42:35Z<p>Ben.kavanagh: </p>
<hr />
<div>Step 1. Install ghc 6.8.3 installation executable here<br />
http://haskell.org/ghc/dist/6.8.3/ghc-6.8.3-i386-windows.exe<br />
<br />
Step 2. Install it to default directory c:\ghc\ghc-6.8.3<br />
<br />
Step 3. create directory c:\ghc\ghc-6.8.3\libraries<br />
<br />
Step 4. Download GLFW source zip here<br />
http://hackage.haskell.org/packages/archive/GLFW/0.3/GLFW-0.3.tar.gz<br />
<br />
Step 5. untar into c:\ghc\ghc-6.8.3\libraries. This will create a subdirectory GLFW-0.3<br />
<br />
Step 6. Pull up windows command shell. Verify that ghc is in your path by typing ghc at the prompt. If it is not, go to Control Panel -> System -> Advanced -> Environment Variables and edit Path to add "c:\ghc\ghc-6.8.3\bin\" to Path.<br />
<br />
Step 7. in Command shell (or other shell like cygwin shell) execute the following commands <br />
<br />
* > cd c:\ghc\ghc-6.8.3\libraries\GLFW<br />
* > runghc Setup.hs configure<br />
* > runghc Setup.hs build<br />
* > runghc Setup.hs install<br />
<br />
This installs the GLFW package. The OpenGL package comes with the standard installation. <br />
<br />
Step 8. install darcs for Windows. see instructions on how to install pre-built binaries here <br />
* http://wiki.darcs.net/DarcsWiki/CategoryBinaries<br />
<br />
Step 9. compile and install QuickCheck 2 development version<br />
* > cd c:\ghc<br />
* > darcs get http://www.cs.chalmers.se/~bringert/darcs/QuickCheck/<br />
* > runghc Setup.lhs configure<br />
* > runghc Setup.lhs build<br />
* > runghc Setup.lhs install<br />
<br />
<br />
You should now be able to load the tutorials with ghci via <br />
* > ghci tutorialN.hs {N = 1,2...}</div>Ben.kavanaghhttps://wiki.haskell.org/index.php?title=Informatics_1_Windows_Installation&diff=23380Informatics 1 Windows Installation2008-10-08T23:36:28Z<p>Ben.kavanagh: </p>
<hr />
<div>Step 1. Install ghc 6.8.3 installation executable here<br />
http://haskell.org/ghc/dist/6.8.3/ghc-6.8.3-i386-windows.exe<br />
<br />
Step 2. Install it to default directory c:\ghc\ghc-6.8.3<br />
<br />
Step 3. create directory c:\ghc\ghc-6.8.3\libraries<br />
<br />
Step 4. Download GLFW source zip here<br />
http://hackage.haskell.org/packages/archive/GLFW/0.3/GLFW-0.3.tar.gz<br />
<br />
Step 5. untar into c:\ghc\ghc-6.8.3\libraries. This will create a subdirectory GLFW-0.3<br />
<br />
Step 6. Pull up windows command shell. Verify that ghc is in your path by typing ghc at the prompt. If it is not, go to Control Panel -> System -> Advanced -> Environment Variables and edit Path to add "c:\ghc\ghc-6.8.3\bin\" to Path.<br />
<br />
Step 7. in Command shell (or other shell like cygwin shell) execute the following commands <br />
<br />
* > cd c:\ghc\ghc-6.8.3\libraries\GLFW<br />
* > runghc Setup.hs configure<br />
* > runghc Setup.hs build<br />
* > runghc Setup.hs install<br />
<br />
This installs the GLFW package. The OpenGL package comes with the standard installation. <br />
<br />
You should now be able to load the tutorial1.hs file with ghci via <br />
* > ghci tutorial1.hs</div>Ben.kavanaghhttps://wiki.haskell.org/index.php?title=Informatics_1_Windows_Installation&diff=23379Informatics 1 Windows Installation2008-10-08T23:32:10Z<p>Ben.kavanagh: </p>
<hr />
<div>Step 1. Install ghc 6.8.3 installation executable here<br />
http://haskell.org/ghc/dist/6.8.3/ghc-6.8.3-i386-windows.exe<br />
<br />
Step 2. Install it to default directory c:\ghc\ghc-6.8.3<br />
<br />
Step 3. create directory c:\ghc\ghc-6.8.3\libraries<br />
<br />
Step 4. Download GLFW source zip here<br />
http://hackage.haskell.org/packages/archive/GLFW/0.3/GLFW-0.3.tar.gz<br />
<br />
Step 5. untar into c:\ghc\ghc-6.8.3\libraries. This will create a subdirectory GLFW-0.3<br />
<br />
Step 6. Pull up windows command shell. Verify that ghc is in your path by typing ghc at the prompt. If it is not, go to Control Panel -> System -> Advanced -> Environment Variables and edit Path to add "c:\ghc\ghc-6.8.3\bin\" to Path.<br />
<br />
Step 7. in Command shell execute the following commands <br />
<br />
> cd c:\ghc\ghc-6.8.3\libraries\GLFW<br />
> runghc Setup.hs configure<br />
> runghc Setup.hs build<br />
> runghc Setup.hs install<br />
<br />
This installs the GLFW package. The OpenGL package comes with the standard installation. <br />
<br />
You should now be able to load the tutorial1.hs file with ghci via <br />
> ghci tutorial1.hs</div>Ben.kavanaghhttps://wiki.haskell.org/index.php?title=Informatics_1_-_Functional_Programming&diff=23378Informatics 1 - Functional Programming2008-10-08T23:23:15Z<p>Ben.kavanagh: </p>
<hr />
<div>[[Category:Education]]<br />
The course [http://www.inf.ed.ac.uk/teaching/courses/inf1/fp/ Informatics 1 - Functional Programming] is the first programming course taught to students at the [http://www.inf.ed.ac.uk/ School of Informatics] of the [http://www.ed.ac.uk University of Edinburgh].<br />
<br />
== Instructor ==<br />
<br />
The course lecturer is professor [http://homepages.inf.ed.ac.uk/wadler/ Philip Wadler].<br />
<br />
== Setup ==<br />
<br />
The course consists of 20 lectures and 10 tutorials spread over the length of the first semester of the year (September&ndash;December). Each tutorial has its own set of exercises, and examination is by two programming tests.<br />
<br />
== Students' background ==<br />
<br />
The course is aimed primarily at students with no prior programming experience.<br />
<br />
== Materials ==<br />
<br />
=== Textbook ===<br />
<br />
The course textbook is Simon Thompson: Haskell, the Craft of Functional Programming.<br />
<br />
=== Editor ===<br />
<br />
The text editor used in the course is [http://www.gnu.org/software/emacs/ Emacs] in [[Haskell mode for Emacs|Haskell mode]].<br />
<br />
=== Packages ===<br />
<br />
Most exercises require students to verify their code using [[QuickCheck]], where writing appropriate test properties is part of the challenge. In addition, some tutorial exercises use a modified version of the [http://www.haskell.org/SOE School of Expression graphics library], which relies on the following packages:<br />
<br />
* [[OpenGL]]<br />
* [[GLFW]]<br />
<br />
<b>Note:</b> to run GLFW under Mac OS X you have to use [[WxHaskell/MacOS X#Using wxHaskell on MacOS X platforms|EnableGUI]] (easy instructions are on the [http://www.haskell.org/soe/software1.htm SOE site]).<br />
<br />
=== GHC Installation ===<br />
<br />
For some brief notes on installing ghc with GLFW on windows see [[Informatics 1 Windows Installation]]</div>Ben.kavanagh