Forrest logo
back to the brittany tool

brittany:tldr:1ed4f

brittany: Format a Haskell source file using the specified amount of spaces per indentation level and line length.
$ brittany --indent ${4} --columns ${100} ${filename-hs}
try on your machine

The command above is executing the program "brittany" with certain arguments. Here is the explanation of each part of the command:

  • "brittany": This is the name of the program being executed. "brittany" is a tool used for formatting Haskell source code.

  • "--indent ${4}": This argument specifies the number of spaces to use for each level of indentation in the formatted code. In this case, "${4}" suggests that the value for indentation is passed as an argument. The actual value of indentation is not provided in the command itself.

  • "--columns ${100}": This argument defines the maximum number of columns to use for each line of code. Again, "${100}" indicates that the value is provided as an argument.

  • "${filename-hs}": This argument represents the name of the Haskell source code file that you want to format using Brittany. Similar to the indentation and column arguments, the actual filename is not given in the command, and it is expected to be passed as an argument.

In summary, the command is using the "brittany" program to format Haskell source code, specifying the desired indentation and maximum number of columns, and providing the filename of the code to be formatted as arguments.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the brittany tool