package linksem

  1. Overview
  2. Docs
A formalisation of the core ELF and DWARF file formats written in Lem

Install

Dune Dependency

Authors

Maintainers

Sources

0.8.tar.gz
md5=2075c56715539b3b8f54ae65cc808b8c
sha512=f7c16e4036a1440a6a8d13707a43f0f9f9db0c68489215f948cc300b6a164dba5bf852e58f89503e9d9f38180ee658d9478156ca1a1ef64d6861eec5f9cf43d2

doc/linksem_zarith/Show/index.html

Module ShowSource

show.lem exports the typeclass Show and associated functions for pretty * printing arbitrary values.

Sourcetype 'a show_class = {
  1. show_method : 'a -> string;
}
Sourceval string_of_unit : 'a -> string

string_of_unit u produces a string representation of unit u.

Sourceval instance_Show_Show_unit_dict : unit show_class
Sourceval string_of_bool : bool -> string

string_of_bool b produces a string representation of boolean b.

Sourceval instance_Show_Show_bool_dict : bool show_class
Sourceval string_of_string : string -> string

To give control over extraction as instances cannot be target specific, but * the functions they are bound to can be...

Sourceval instance_Show_Show_string_dict : string show_class
Sourceval string_of_pair : 'a show_class -> 'b show_class -> ('a * 'b) -> string

string_of_pair p produces a string representation of pair p.

Sourceval instance_Show_Show_tup2_dict : 'a show_class -> 'b show_class -> ('a * 'b) show_class
Sourceval string_of_triple : 'a show_class -> 'b show_class -> 'c show_class -> ('a * 'b * 'c) -> string

string_of_triple p produces a string representation of triple p.

Sourceval instance_Show_Show_tup3_dict : 'a show_class -> 'b show_class -> 'c show_class -> ('a * 'b * 'c) show_class
Sourceval string_of_quad : 'a show_class -> 'b show_class -> 'c show_class -> 'd show_class -> ('a * 'b * 'c * 'd) -> string

string_of_quad p produces a string representation of quad p.

Sourceval instance_Show_Show_tup4_dict : 'a show_class -> 'b show_class -> 'c show_class -> 'd show_class -> ('a * 'b * 'c * 'd) show_class
Sourceval string_of_maybe : 'a show_class -> 'a option -> string

string_of_maybe m produces a string representation of maybe value m.

Sourceval instance_Show_Show_Maybe_maybe_dict : 'a show_class -> 'a option show_class
Sourceval show_else : 'a show_class -> string -> 'a option -> string

show_else s m produces a string representation of maybe m, using s * in the case m = Nothing.

string_of_nat m produces a string representation of nat value m.

Sourceval instance_Show_Show_nat_dict : int show_class
Sourceval instance_Show_Show_Num_natural_dict : Nat_big_num.num show_class
Sourceval instance_Show_Show_Num_integer_dict : Nat_big_num.num show_class
OCaml

Innovation. Community. Security.