FUTHARK-FMT(1)

πŸ“¦
version 0.25.32 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

✨ 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 πŸ’œ

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