package grace
A fancy diagnostics library that allows your compilers to exit with grace
Install
Dune Dependency
Authors
Maintainers
Sources
grace-0.2.0.tbz
sha256=821df54882c9253eac69f47bcf3a71ffdc61c77fdae42587c32aada5b56cfeae
sha512=007afa83251da3ddecd874e120ea89dce0253c387a64a5fece69069d3486ec5eb6c82d6bf0febaf23dd322bd9eaadc2f7882e33f05a2e1fa18a41294e7dc3ba1
doc/src/grace.ansi_renderer/grace_ansi_renderer.ml.html
Source file grace_ansi_renderer.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
open! Import module Config = Config let default_code_to_string _code = "E????" let of_snippet_renderer snippet_of_diagnostic ?(config = Config.default) ?(code_to_string = default_code_to_string) () ppf diagnostic = let snippet = Source_reader.with_reader @@ fun () -> snippet_of_diagnostic diagnostic in Snippet_renderer.pp_snippet ~config ~code_to_string ppf snippet ;; let pp_diagnostic ?config = of_snippet_renderer Snippet.of_diagnostic ?config let pp_compact_diagnostic ?config = of_snippet_renderer Snippet.compact_of_diagnostic ?config ;;
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>