package ocamlformat
 sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >
  
  
  Auto-formatter for OCaml code
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
  
    
      ocamlformat-0.26.1.tbz
    
    
        
    
  
  
  
    
  
  
    
  
        sha256=da006e427f15b9ec612fb808d446599bd9b7c3ee25abeb3d555747a70d74c6d7
    
    
  sha512=b7413f8dc47ba3a2372e89d59cae54f9a602ab81e31cd14ed986a831111080b79a5a3cc45dac04d8ffae5054c35bf29fe9559f145c76c87a30e191ed5400942a
    
    
  doc/doc_comments.html
Doc-comments language reference
OCamlFormat uses odoc-parser to parse doc-comments (also referred to as doc-strings), and hence it inherits the accepted language from odoc (detailed in odoc's documentation).
Here is an example showing a few useful elements:
(** Adding integers. *)
(** {1 Exception} *)
(** Raised in case of integer overflow *)
exception Int_overflow
(** {1 Function definition} *)
(** [add ~x ~y] returns [x + y] or raises an exception in case of integer overflow.
    Usage:
    {@ocaml some_metadata[
    # add ~x:1 ~y:2 ;;
    - : int = 3
    ]}
    Here is a basic diagram:
    {v
          add  ~x:1   ~y:2
                  \   /
                   (+)
                    |
                    3
    v}
    Notes:
    - {_ check} that exception {!exception:Int_overflow} is {b not raised};
    - have a look at {!module:Int}.
    @return [x + y]
    @raise Exception [Int_overflow] *)
val add: x:int (** one operand *) -> y:int (** another operand *) -> int (** result *)
           sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >