File: name.t

package info (click to toggle)
ocamlformat 0.28.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,436 kB
  • sloc: ml: 63,321; pascal: 4,769; lisp: 229; sh: 217; makefile: 121
file content (19 lines) | stat: -rw-r--r-- 506 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  $ echo profile=default > .ocamlformat

  $ echo 'let x =     1' > a.ml
  $ ocamlformat --name a.cpp a.ml
  let x = 1

  $ echo 'let y =' > syntax_error.ml
  $ ocamlformat --name foo.ml syntax_error.ml
  ocamlformat: ignoring "foo.ml" (syntax error)
  File "foo.ml", line 2, characters 0-0:
  Error: Syntax error
  [1]

  $ echo 'module X : S' > a.mli
  $ ocamlformat --name foo.ml a.mli
  ocamlformat: ignoring "foo.ml" (syntax error)
  File "foo.ml", line 2, characters 0-0:
  Error: Syntax error
  [1]