Christer van der Meeren

Results 513 comments of Christer van der Meeren

From the top of my head: ```f# async { return (Some 1) } |> map2 ((+) 3) ``` Instead of: ```f# async { return (Some 1) } |> map (map...

What about naming it `mapComp2` etc.? My example was a bit contrived; I'll see if I can find a real example.

> I wonder if `mapComp2` reads better than `(map >> map)` Fair point.

Okay, here's a simplified example of the only place I currently have `map (map`. It may not make much sense. I've tried indicating function signatures by their name. (It's a...

@adz I haven't really understood monad transformers (in FSharpPlus or otherwise). Can you given a convincing example of using ResultT with Async? Is the added boilerplate (wrapping/unwrapping) worth it?

I can understand testing `[]` only once if it's the only generated value, but what if you are generating other values in the same property? Then `[]` could be generated...

> When does Hedgehog give up? Is it after a certain number of shrinks? Unsure if that question was for me, but I have no idea.

> @cmeeren, how you'd get the simplest value of a complex data structure? Are you talking about e.g. this? ```f# let myComplexGen = gen { let! a = Gen.int ......

> your generator must include a filter. That can't be right. Here's a `DateTimeOffset` generator for dates between 2000 and 2100, centering on the current date (the simplest value). There's...

Note that in my case, the test failure that caused the shrinking centered on DST changes. Sometimes it would shrink to some DST change in 2040 and thereabouts, whereas other...