Thanks to visit codestin.com
Credit goes to github.com

Skip to content

coq-io/system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IO System

System effects for Coq. See also coq:io.

Require Import Io.All.
Require Import Io.System.All.
Require Import ListString.All.

Import C.Notations.

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

Install

Using OPAM for Coq:

opam repo add coq-stable https://github.com/coq/repo-stable.git
opam install coq:io:system

API

See the complete documentation online on doc/io-system.

Extraction

To run a program you can extract it to OCaml. Do:

Definition main := Extraction.run hello_world.
Extraction "main" main.

You can now compile and execute main.ml:

ocamlbuild main.native -use-ocamlfind -package io-system
./main.native

About

Library of Unix effects for Coq.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •