Debian Codegraph @

src/Util/MSets/Show.v

raw
1 From Coq Require Import List.
2 From Coq Require Import MSetInterface.
3 Require Import Crypto.Util.Strings.Show.
4
5 Module ShowWSetsOn (E : Equalities.DecidableType) (W : WSetsOn E).
6 Global Instance show_lvl_t {show_elt : ShowLevel E.t} : ShowLevel W.t
7 := fun v => show_lvl (W.elements v).
8 Global Instance show_t {show_elt : Show E.t} : Show W.t
9 := fun v => show (W.elements v).
10 Global Instance show_lines_t {show_elt : ShowLines E.t} : ShowLines W.t
11 := fun v => show_lines (W.elements v).
12 End ShowWSetsOn.
13
14 Module ShowWSets (W : WSets) := ShowWSetsOn W.E W.