[web-devel] real Models in Yesod
greg at gregweber.info
Fri Jul 15 16:12:39 CEST 2011
sounds fine to me. We will need to provide a sequencing function to users
then to combine triggers with.
On Thu, Jul 14, 2011 at 11:29 PM, Michael Snoyman <michael at snoyman.com>wrote:
> Personally, I think we should only provide a single function instead
> of allowing the definition of multiple functions. If users need
> multiple functions, they can define a "wrapper" function in normal
> Haskell. The reasoning here is to avoid "magic" in the TH code
> whenever possible.
> As for different types of triggers, how about attributes like
> "onSave", "onUpdate", "onCreate" and "onDelete"? onSave could be
> called for both onUpdate and onCreate (with some explicit rules about
> what happens when *both* of those are defined).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the web-devel