[web-devel] [Yesod][Persistent] FooIdEq,FooIdIn
Michael Snoyman
michael at snoyman.com
Sat Mar 12 19:46:00 CET 2011
On Sat, Mar 12, 2011 at 3:07 AM, Katsutoshi Itoh <cutsea110 at gmail.com> wrote:
> Hi
>
> I had often wanted FooIdIn, FooIdEq on Foo Persistent type.
> Would you support this by default?
>
> from japan.
As Max said, glad to see that you're safe.
For FooIdEq: I don't think there is any need, since it can be
expressed more succinctly with the "get" function. As for FooIdIn:
this *was* a recently requested feature. Maybe we can get it in for
the next release. I think it would make sense to add the In attribute
to the entity itself, eg:
mkPersist [$persist|
Person In
name String
age Int
|]
Any objections?
Michael
More information about the web-devel
mailing list