From 8763029994c4a76335a90a264fdf64e0d0f8c2b5 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Tue, 16 May 2023 22:39:09 +1000 Subject: [PATCH 1/2] . --- docs/fsharp.md | 8 ++++++++ docs/mdsource/fsharp.source.md | 8 ++++++++ src/FSharpTests/FSharpTests.fsproj | 1 + src/Verify/Verify.csproj | 2 +- 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/fsharp.md b/docs/fsharp.md index 00bebbece0..71bbe77574 100644 --- a/docs/fsharp.md +++ b/docs/fsharp.md @@ -7,6 +7,14 @@ To change this file edit the source file and then run MarkdownSnippets. # Usage in FSharp +Argon ships F# support in a separate nuget [Argon.FSharp](https://www.nuget.org/packages/Argon.FSharp/). + +To serialize F# types properly, add the converters: + +```fs +VerifierSettings.AddExtraSettings(fun settings -> settings.AddFSharpConverters()) +``` + ## NullValueHandling diff --git a/docs/mdsource/fsharp.source.md b/docs/mdsource/fsharp.source.md index 27e30cfc72..008afd8d92 100644 --- a/docs/mdsource/fsharp.source.md +++ b/docs/mdsource/fsharp.source.md @@ -1,5 +1,13 @@ # Usage in FSharp +Argon ships F# support in a separate nuget [Argon.FSharp](https://www.nuget.org/packages/Argon.FSharp/). + +To serialize F# types properly, add the converters: + +```fs +VerifierSettings.AddExtraSettings(fun settings -> settings.AddFSharpConverters()) +``` + ## NullValueHandling diff --git a/src/FSharpTests/FSharpTests.fsproj b/src/FSharpTests/FSharpTests.fsproj index 760563444f..bbd3579dde 100644 --- a/src/FSharpTests/FSharpTests.fsproj +++ b/src/FSharpTests/FSharpTests.fsproj @@ -6,6 +6,7 @@ + diff --git a/src/Verify/Verify.csproj b/src/Verify/Verify.csproj index c44bcdf32c..f66e4cfe3f 100644 --- a/src/Verify/Verify.csproj +++ b/src/Verify/Verify.csproj @@ -27,7 +27,7 @@ - + From 44b9543af08ad9f1e3c31a691a6e74a2ff952f5e Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Thu, 18 May 2023 15:38:19 +1000 Subject: [PATCH 2/2] . --- src/FSharpTests/FSharpTests.fsproj | 2 +- src/Verify/Verify.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FSharpTests/FSharpTests.fsproj b/src/FSharpTests/FSharpTests.fsproj index bbd3579dde..0c0fe33b09 100644 --- a/src/FSharpTests/FSharpTests.fsproj +++ b/src/FSharpTests/FSharpTests.fsproj @@ -6,7 +6,7 @@ - + diff --git a/src/Verify/Verify.csproj b/src/Verify/Verify.csproj index f66e4cfe3f..00691620ec 100644 --- a/src/Verify/Verify.csproj +++ b/src/Verify/Verify.csproj @@ -27,7 +27,7 @@ - +