ocamlformat icon indicating copy to clipboard operation
ocamlformat copied to clipboard

Auto-formatter for OCaml code

Results 143 ocamlformat issues
Sort by recently updated
recently updated
newest added

Hello, I have the following module which definition starts with: ```ocaml module Basic : Checked_intf.Basic with module Types = Types with type 'f field = 'f = struct module Types...

Kind/style-suggestion

Hello, Thanks for your great work, I'm glad ocamlformat allows customization via its config, and I find its output pretty good most of the times. However, I do find the...

Kind/style-suggestion

First, thank you for your continued effort. I was _very_ apprehensive to upgrade from 0.20 due to many options I was using being deprecated, however I found my near-bliss with...

Kind/style-suggestion

We want to convert `[@@ocaml.doc "..."]` to `(** ... *)` in the code output by the source code generator. example: from ```ocaml type student = { admission_year : int; [@ocaml.doc...

Kind/feature-request

This PR refactors the function for formatting module types. It doesn't use the `block` concept, which is hard to work with and brings bugs that are too hard to solve....

Function arguments are indented in different ways depending on context: ```ocaml let _ = fun (module Store : Irmin.Generic_key.S with type repo = repo) (module Store : Irmin.Generic_key.S with type...

Kind/Bug :x:

**Is your feature request related to a problem? Please describe.** At the moment, as far as I can tell, there's no way to reliably produce output like the following: ```ocaml...

Kind/feature-request

**Describe the bug** ocamlformat-rpc formats files in projects that do not use ocamlformat, i.e., without `.ocamlformat` file present. To my understanding, ocamlformat-rpc, when can't find .ocamlformat for the project, uses...

Kind/Bug :x:

in the following start of my file, I'm trying to add a space in between the first and second line but ocamlformat is preventing me: ```ocaml open Core_kernel module B...

Kind/feature-request

This is a work in progress and is required for 5.2 compatibility. The old `Pexp_function` and `Pexp_fun` are formatted in different ways in different contextes (eg. as an argument, in...