
15 Jul
2011
15 Jul
'11
10:12 a.m.
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
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).
Michael