diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2026-06-23 23:53:26 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-23 23:53:26 -0300 |
| commit | c284fcd570342c31bc21169960579a20a763e32e (patch) | |
| tree | ce7485055116d794c55090ad0978e0b3f5ff4c2a /.ocamlformat | |
| parent | b81586ee4a0543a5f9866586c78dccdd6328934a (diff) | |
| download | Sakura-c284fcd570342c31bc21169960579a20a763e32e.tar.gz Sakura-c284fcd570342c31bc21169960579a20a763e32e.zip | |
Format
Diffstat (limited to '.ocamlformat')
| -rw-r--r-- | .ocamlformat | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.ocamlformat b/.ocamlformat index e69de29..280d9fc 100644 --- a/.ocamlformat +++ b/.ocamlformat @@ -0,0 +1,30 @@ +version = 0.29.0 +# `compact`/`sparse` profiles were removed in 0.22; `ocamlformat` is the +# densest remaining base. The knobs below tighten it further. +profile = ocamlformat + +# Wider lines pack more per line -> fewer wraps, denser code. +margin = 100 + +# No blank lines forced between structure items / let bindings. +module-item-spacing = compact +let-binding-spacing = compact + +# Tight delimiters: no inner spaces in [..], {..}, (..), arrays. +space-around-lists = false +space-around-arrays = false +space-around-records = false +space-around-variants = false +field-space = tight + +# Keep conditionals and matches on as few lines as fit. +if-then-else = compact +break-cases = fit +break-infix = fit-or-vertical +break-separators = after +parens-tuple = multi-line-only +sequence-style = terminator + +# Don't reflow comment text; leave doc comments as written. +wrap-comments = false +doc-comments = before
\ No newline at end of file |
