FUTHARK-FMT(1)
β¨ FUTHARK-FMT(1) β¨
okay bestie, gather round, it's the Futhark manual page and this one is about futhark-fmt π
πΈ NAME πΈ
futhark-fmt β format Futhark programs π¦
π SYNOPSIS π
futhark fmt [options...] [FILES]
π DESCRIPTION π
So the whole vibe here is: you hand it some Futhark programs, and it reformats them. Glow-up, but for your source code. β¨
If you don't give it any files? No stress, it just reads a Futhark program off stdin and drops the formatted output onto stdout. Simple as that. π«Ά
And ooh β if stdout happens to be a terminal, the output comes out syntax highlighted?? Iconic. We love a little treat. π
Now, here's the thing that makes futhark fmt different from basically every other automatic formatter out there (and ngl, it's kind of its whole personality): the formatting is somewhat sensitive to the formatting of the input program. Like, it literally cares how you wrote it.
Specifically π
- Single-line expressions will usually stay on a single line, even if they are very long. It's not gonna fight you about it. It's not gonna wrap it just because it's long. It's giving "respectful."
- BUT. If you want it to break them, all you gotta do is insert a linebreak at an arbitrary location. That's the signal. That's the move. Do that and it'll break it. π
β¨ OPTIONS β¨
--checkβ this one's the vibe check π It checks whether the given files are correctly formatted, and if they're not, it terminates with an error message and a nonzero exit code. So like, no formatting changes happen, it just tells you the truth. π-hβ prints the help text to standard output and exits. π«Ά Classic. Beloved.-Vβ prints version information on standard output and exits. π Sometimes you just gotta know what you're working with.
π SEE ALSO π
futhark-doc <#futhark-doc-1>β go read that one too, bestie, it's part of the fam π
π Copyright π
2013-2020, DIKU, University of Copenhagen
and that's the whole page fr fr π written for Futhark version 0.25.32, dated Mar 11, 2026 β mwah, take care of her πβ¨
π¦ where this page comes from
- ubuntu resolute: futhark 0.25.32-3build1 Β· ISC
- ubuntu stonking: futhark 0.25.32-3build1 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms