- Linux: Use your packaging system, for example, open a Terminal and
- type:
- sudo apt-get install ocaml ocaml-findlib
- That will install a version of OCaml (probably 3.11.2, from January 2010)
- and the Findlib add-on.
-
- If for some reason you can't get OCaml through your
- packaging system, you can go to:
- <http://caml.inria.fr/download.en.html>
- Pre-packaged binary installers are available for several Linux systems.
-
- If you can't get findlib through your packaging system, you'll
- need to download it from:
- <http://download.camlcity.org/download/findlib-1.2.6.tar.gz>
- and use gcc to compile it yourself. If you don't know how to
- do that, you probably don't want to attempt this.
- Here are the INSTALL notes:
- <https://godirepo.camlcity.org/svn/lib-findlib/trunk/INSTALL>
+ As with Scheme, it's helpful to also have rlwrap installed, and to start OCaml as `rlwrap ocaml`. This gives
+ you a nice history of the commands you've already typed, which you can scroll up and down in with your
+ keyboard arrows.
+
+* [More details about installing OCaml on Macs, if needed](http://cocan.org/getting_started_with_ocaml_on_mac_os_x)
+
+* **To install on Linux**
+
+ Use your packaging system, for example, open a Terminal and
+ type:
+
+ sudo apt-get install ocaml ocaml-findlib
+
+ That will install a version of OCaml and the Findlib add-on.
+
+ If for some reason you can't get OCaml through your
+ packaging system, you can go to
+ <http://caml.inria.fr/download.en.html>.
+ Pre-packaged binary installers are available for several Linux systems.
+
+ If you can't get findlib through your packaging system, you'll
+ need to download it from
+ <http://download.camlcity.org/download/findlib-1.2.6.tar.gz>.
+ and use gcc to compile it yourself. If you don't know how to
+ do that, you probably don't want to attempt this.
+ Here are the INSTALL notes:
+ <https://godirepo.camlcity.org/svn/lib-findlib/trunk/INSTALL>.
+
+ As with Scheme, it's helpful to also have rlwrap installed, and to start OCaml as `rlwrap ocaml`. This gives
+ you a nice history of the commands you've already typed, which you can scroll up and down in with your
+ keyboard arrows.
+
+
+## Getting Haskell ##
+
+This last step is less crucial than the others, since we will be focusing
+primarily on Scheme and OCaml. However we, and the readings you come across,
+will sometimes mention Haskell, so it might be worth your installing this too,
+so that you have it available to play around with.
+
+Haskell is used a lot in the academic contexts we'll be working through. At one point, Scheme
+dominated these discussions but now Haskell seems to do that.
+
+Haskell's surface syntax differs from Caml, and there are various important things one can do in
+each of Haskell and Caml that one can't (or can't as easily) do in the
+other. But these languages also have *a lot* in common, and if you're
+familiar with one of them, it's generally not hard to move between it and the
+other.
+
+* In your web browser:
+
+ There is a (slow, bare-bones) version of Haskell available for online use at <http://tryhaskell.org/>.
+
+sudo apk-get install haskell-platform
+
+<https://github.com/pittsburgh-haskell/haskell-installation>
+
+<https://www.haskell.org/platform>
+
+Getting started: <https://wiki.haskell.org/Haskell_in_5_steps>
+