File: futhark-fmt.rst

package info (click to toggle)
haskell-futhark 0.25.32-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 18,236 kB
  • sloc: haskell: 100,484; ansic: 12,100; python: 3,440; yacc: 785; sh: 561; javascript: 558; lisp: 399; makefile: 277
file content (43 lines) | stat: -rw-r--r-- 979 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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.. role:: ref(emphasis)

.. _futhark-fmt(1):

===========
futhark-fmt
===========

SYNOPSIS
========

futhark fmt [options...] [FILES]

DESCRIPTION
===========

Reformat the given Futhark programs. If no files are provided, read
Futhark program on stdin and produce formatted output on stdout. If
stdout is a terminal, the output will be syntax highlighted.

In contrast to many other automatic formatters, the formatting is
somewhat sensitive to the formatting of the input program. In
particular, single-line expressions will usually be kept on a single
line, even if they are very long. To force ``futhark fmt`` to break
these, insert a linebreak at an arbitrary location.

OPTIONS
=======

--check
  Check if the given files are correctly formatted, and if not,
  terminate with an error message and a nonzero exit code.

-h
  Print help text to standard output and exit.

-V
  Print version information on standard output and exit.

SEE ALSO
========

:ref:`futhark-doc(1)`