diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 2f2cb78..a2a1303 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,10 +3,10 @@ "isRoot": true, "tools": { "fantomas": { - "version": "5.2.0-alpha-008", + "version": "6.3.16", "commands": [ "fantomas" ] } } -} +} \ No newline at end of file diff --git a/.editorconfig b/.editorconfig index 032150c..e207c42 100644 --- a/.editorconfig +++ b/.editorconfig @@ -23,7 +23,7 @@ fsharp_space_before_class_constructor=true fsharp_space_before_member=true fsharp_space_before_colon=true fsharp_space_before_semicolon=true -fsharp_multiline_block_brackets_on_same_column=true +fsharp_multiline_bracket_style=aligned fsharp_newline_between_type_definition_and_members=true fsharp_align_function_signature_to_indentation=true fsharp_alternative_long_member_definitions=true diff --git a/.fantomasignore b/.fantomasignore new file mode 100644 index 0000000..9b42106 --- /dev/null +++ b/.fantomasignore @@ -0,0 +1 @@ +.direnv/ diff --git a/AdventOfCode2022.App/Assembly.fs b/AdventOfCode2022.App/Assembly.fs index 305c1e9..cd5758a 100644 --- a/AdventOfCode2022.App/Assembly.fs +++ b/AdventOfCode2022.App/Assembly.fs @@ -5,9 +5,7 @@ open System.Reflection [] module Assembly = - type private Dummy = - class - end + type private Dummy = class end let readResource (name : string) : string = let asm = Assembly.GetAssembly typeof diff --git a/AdventOfCode2022.App/Program.fs b/AdventOfCode2022.App/Program.fs index d46ab71..44c5f3c 100644 --- a/AdventOfCode2022.App/Program.fs +++ b/AdventOfCode2022.App/Program.fs @@ -107,9 +107,7 @@ module Program = match args with | [| "bench" |] -> let config = - ManualConfig - .Create(DefaultConfig.Instance) - .WithOptions ConfigOptions.DisableOptimizationsValidator + ManualConfig.Create(DefaultConfig.Instance).WithOptions ConfigOptions.DisableOptimizationsValidator let _summary = BenchmarkRunner.Run config let _summary = BenchmarkRunner.Run config diff --git a/AdventOfCode2022.Test/Assembly.fs b/AdventOfCode2022.Test/Assembly.fs index d3c738a..acc787b 100644 --- a/AdventOfCode2022.Test/Assembly.fs +++ b/AdventOfCode2022.Test/Assembly.fs @@ -6,9 +6,7 @@ open System.Reflection [] module Assembly = - type private Dummy = - class - end + type private Dummy = class end let readResource (name : string) : string = let asm = Assembly.GetAssembly typeof diff --git a/nix/deps.nix b/nix/deps.nix index 929d0bb..5848144 100644 --- a/nix/deps.nix +++ b/nix/deps.nix @@ -23,8 +23,8 @@ }) (fetchNuGet { pname = "fantomas"; - version = "5.2.0-alpha-008"; - hash = "sha256-1egphbWXTjs2I5aFaWibFDKgu3llP1o32o1X5vab6v4="; + version = "6.3.16"; + hash = "sha256-4tRdYf+/Q1iedx+DDuIKVGlIWQdr6erM51VdKzZkhCs="; }) (fetchNuGet { pname = "FSharp.Collections.ParallelSeq";