What typeclasses need to be defined for a Yesod path?
问题 In my application, my data model has several different instances of using an Integer or a String for some identifier. For safety, I've gone ahead and wrapped those identifiers into newtype declarations like so: newtype DocId = DocId Integer newtype GroupName = GroupName String newtype UserName = UserName String When I'm setting up my Yesod paths, I'm discovering that I have to create at least three instances for each of these, and the instances are almost always identical instance Read DocId