X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=index.mdwn;h=88af76612a3c34381905465f051cb46ff90b8c89;hp=b76b091ac00b11ec78c6744fb73fd6eee3b2bc4e;hb=6cd636212017dab1bf58937dcc6a405de40d0a90;hpb=aca81d60f098d49bed916cebb3e58d0a14c8c471 diff --git a/index.mdwn b/index.mdwn index b76b091a..88af7661 100644 --- a/index.mdwn +++ b/index.mdwn @@ -168,7 +168,16 @@ Practical advice for working with OCaml and/or Haskell (will be posted someday); (**Week 9**) Thursday April 2 > Topics: Programming with mutable state; the State monad; using multiple monads together -> Here are some OCaml libraries: [[Juli8|code/juli8.ml]] and [[Monad|code/monad.ml]]. We'll write up explanations of these soon. +> Here are some OCaml libraries: [[Juli8|code/juli8.ml]] and [[Monad|code/monad.ml]]. We'll write up explanations of these soon. But quickly, before you `#use "juli8.ml"`, you have to run this in your OCaml session. (I have these lines in my `~/.ocamlinit` file, so they run every time OCaml starts up: + +> #load "str.cma";; +> module Std = struct +> include Pervasives +> module List = List +> module Random = Random +> module String = String +> end +