This commit is contained in:
parent
1e30753ba9
commit
f1e2607426
1 changed files with 11 additions and 0 deletions
|
|
@ -4,6 +4,17 @@
|
|||
check endianness
|
||||
|
||||
better handling of decoding failure *)
|
||||
|
||||
type one
|
||||
type two
|
||||
|
||||
type (_, _) typ =
|
||||
| R : 'r -> ('r, one) typ
|
||||
| Sig : string -> ('r, two) typ
|
||||
|
||||
let sign : type r. (r -> string) -> (r, one) typ -> (r, two) typ =
|
||||
fun f (R r) -> Sig (f r)
|
||||
|
||||
open Hash
|
||||
|
||||
module Aliases = struct
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue