
3 Jun
2021
3 Jun
'21
6:21 a.m.
On Thu, Jun 3, 2021 at 6:44 PM MigMit wrote:
Agreed. I like to use DefaultSignatures like this: <SNIP> Then all the user needs to do is to say
instance Parse Double
and it would automagically use the provided implementation.
This looks like a great compromise, allowing developers to utilize the default implementation for a specific type with very little code. A prominent warning against doing so in shared libraries would still be needed, of course. I look forward to experimenting with this design soon! Thank you very much for the suggestion! Also, thank you for the example code, as this pattern is new to me. Best regards, Travis