Skip to content

Commit

Permalink
Update the default line length to 100
Browse files Browse the repository at this point in the history
As was empirically determined in #3 and piegamesde/nixpkgs#3
  • Loading branch information
piegamesde committed Nov 15, 2023
1 parent 7649a1b commit 8645a22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ data Nixfmt = Nixfmt

options :: Nixfmt
options =
let defaultWidth = 80
let defaultWidth = 100
addDefaultHint value message =
message ++ "\n[default: " ++ show value ++ "]"
in Nixfmt
Expand Down
2 changes: 1 addition & 1 deletion test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ shellcheck "$0"
cd "$(dirname "$0")/.."

shopt -s expand_aliases
alias nixfmt="cabal v2-run --verbose=0 nixfmt --"
alias nixfmt="cabal v2-run --verbose=0 nixfmt -- -w 80"

# Do a test run to make sure it compiles fine
nixfmt --version
Expand Down

0 comments on commit 8645a22

Please sign in to comment.