ShowSourceshow.lem exports the typeclass Show and associated functions for pretty * printing arbitrary values.
string_of_unit u produces a string representation of unit u.
string_of_bool b produces a string representation of boolean b.
To give control over extraction as instances cannot be target specific, but * the functions they are bound to can be...
string_of_pair p produces a string representation of pair p.
val string_of_triple :
'a show_class ->
'b show_class ->
'c show_class ->
('a * 'b * 'c) ->
stringstring_of_triple p produces a string representation of triple p.
val instance_Show_Show_tup3_dict :
'a show_class ->
'b show_class ->
'c show_class ->
('a * 'b * 'c) show_classval string_of_quad :
'a show_class ->
'b show_class ->
'c show_class ->
'd show_class ->
('a * 'b * 'c * 'd) ->
stringstring_of_quad p produces a string representation of quad p.
val instance_Show_Show_tup4_dict :
'a show_class ->
'b show_class ->
'c show_class ->
'd show_class ->
('a * 'b * 'c * 'd) show_classstring_of_maybe m produces a string representation of maybe value m.
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.