Loïc Denuzière

Results 263 comments of Loïc Denuzière

@brianrourkeboll You can even pass the value as argument to this active pattern. ```fsharp let (|With|) v _ = v let f x = match x with | A v...

I think it's failing to parse the record, rather than the union. The difference is the `JsonSerializerDefaults.Web` you used in the old version, which includes case-insensitive property names. You need...

Hi, sorry for the delay. What you're seeing here is not the result of `UnwrapFieldlessTags`, since this union does have a field, of type string. Rather, it's the result of...

Yes indeed we need to update the version of paket that is installed by the template. For the project you created, you can run `dotnet tool update paket`. Then paket...

This is now fixed in v0.24.17.

Another example from the Lisp family, in Common Lisp there's the iterate macro where this ```lisp (iter (for x in list) (for sum initially 0 then (+ sum x)) (finally...

I'm pretty sure that the compiler just looks at the name of the function to determine that it's an active pattern, and then checks that the return type is compatible:...

Indeed, currently treating unions as dictionary keys is only supported for single-case single-field unions (eg `type Key = Key of string`), and not for enum-like unions (eg `type Key =...

I believe in this situation, a fix could be to use: ```fsharp [] ``` This way, FSharp.STJ should not meddle with records.

That being said, I may be misunderstanding some details about the issue. I tried to reproduce it, but the test passes: https://github.com/Tarmil/FSharp.SystemTextJson/compare/repro-187