package sherlodoc
All checked builds pass sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Search engine for OCaml documentation
Install
dune-project
Dependency
Authors
Maintainers
Sources
odoc-3.2.2.tbz
sha256=d7b9567ec9f2f99c4557999d78e268c97bcb5cab8770b5e74d694f5abd6dffae
sha512=444aedb4bbf132c45a198f73dbd282048a1e76cd4df739f530334f4c575575784e5db49392c798b997db9ae5d429a40a3618de7ffe71e5a60fbb29c67d5a7da2
doc/src/sherlodoc.db/typexpr.ml.html
Source file typexpr.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42type t = | Arrow of t * t | Constr of string * t list | Tuple of t list | Poly of string | Any | Unhandled let tuple = function | [] -> Any | [ x ] -> x | xs -> Tuple xs let rec show = function | Arrow (a, b) -> show_parens a ^ " -> " ^ show b | Constr (t, []) -> t | Constr (t, [ x ]) -> show_parens x ^ " " ^ t | Constr (t, xs) -> "(" ^ show_list xs ^ ") " ^ t | Tuple xs -> show_tuple xs | Poly "" -> "'_" | Poly name -> "'" ^ name | Any -> "_" | Unhandled -> "???" and show_parens t = match t with | Arrow _ | Tuple _ -> "(" ^ show t ^ ")" | _ -> show t and show_list = function | [] -> failwith "show_list: empty" | [ x ] -> show x | x :: xs -> show x ^ ", " ^ show_list xs and show_tuple = function | [] -> failwith "show_tuple: empty" | [ x ] -> show_parens x | x :: xs -> show_parens x ^ " * " ^ show_tuple xs let size typ = typ |> show |> String.length let equal = Stdlib.( = ) let hash = Hashtbl.hash
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>