Skip to content

Commit

Permalink
Better hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
clarus committed Mar 3, 2015
1 parent 36409e7 commit 2de035c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ System effects for Coq. See [coq:io](https://github.com/clarus/io).

Import C.Notations.

Definition hello_world : C.t System.effects unit :=
Definition hello_world (argv : list LString.t) : C.t System.effects unit :=
System.log (LString.s "Hello world!").

## Install
Expand All @@ -22,7 +22,7 @@ See the complete documentation online on [doc/io-system](http://clarus.github.io
## Extraction
To run a program you can extract it to [OCaml](https://ocaml.org/). Do:

Definition main := Extraction.Lwt.run (Extraction.eval hello_world).
Definition main := Extraction.run hello_world.
Extraction "main" main.

You can now compile and execute `main.ml`:
Expand Down

0 comments on commit 2de035c

Please sign in to comment.