Yesod Forms, Newtypes, and Smart Constructors

Hey everyone. Here are some of my notes on using smart constructors with Yesod forms.

3 Likes

Thanks for writing this. I agree with you that the library docs could do with more examples of common use cases.

I was recently looking for using it to create repeatable groups of inputs and found the MassInput module does what I was looking for, but there were no examples out there and the stock implementation is very rough, so I forked the module in my project and am working refining it. If I get to a point where it’s shareable I will at least write a blog post about it.

2 Likes