X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=translating_between_OCaml_Scheme_and_Haskell.mdwn;h=2e33b1a2b94b0fff2794a3bc8a0380ef26bf52fd;hp=300eb61b7375b43ea68b9641e213e3d3f6a668cb;hb=ff95f5a38d61a6fa0b9c5e4da4253a6a3266a7dc;hpb=1c06c5dab40e8cc8bb1bf89bfe65a7d6741d3cbf diff --git a/translating_between_OCaml_Scheme_and_Haskell.mdwn b/translating_between_OCaml_Scheme_and_Haskell.mdwn index 300eb61b..2e33b1a2 100644 --- a/translating_between_OCaml_Scheme_and_Haskell.mdwn +++ b/translating_between_OCaml_Scheme_and_Haskell.mdwn @@ -111,6 +111,9 @@ Additionally, the syntax of OCaml and SML is superficially much closer to Haskel But assuming you do manage to compile and install Oleg's library, here's how you'd use it in an OCaml session: #require "delimcc";; (* loading Oleg's library this way requires the findlib package *) + (* if you don't have findlib, you'll need to start ocaml like + * this instead: ocaml -I /path/to/directory/containing/delimcc delimcc.cma + *) open Delimcc;; (* this lets you say e.g. new_prompt instead of Delimcc.new_prompt *) let p = new_prompt ();; let prompt thunk = push_prompt p thunk;;