Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sleep -> hello

  • Loading branch information...
commit da8169b830ad4103e39de30ec198e40293e3ed8a 1 parent 146f3bf
@avsm authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 examples/hello/hello.ml
View
9 examples/hello/hello.ml
@@ -0,0 +1,9 @@
+open Lwt
+open Printf
+
+let main () =
+ OS.Console.log "Hello Mirage World!";
+ for_lwt i = 1 to 10 do
+ OS.Console.log (sprintf "Nap time %d" i);
+ OS.Time.sleep 1.0
+ done
Please sign in to comment.
Something went wrong with that request. Please try again.