[web-devel] [Yesod] Abstracting permissions with Yesod

Felipe Almeida Lessa felipe.lessa at gmail.com
Fri Feb 3 13:17:44 CET 2012


On Thu, Feb 2, 2012 at 6:37 PM, Bryan Richter <bryan.richter at gmail.com> wrote:
> I like it a lot!

That's great to hear =).

> I like it so much that I thought about it a really long time and ended
> up writing a "blog" of my own in response. :)
>
> Please excuse this abuse of gists, but I have no other convenient way
> of creating a post with markdown and haskell markup[1] readily
> available to me:
>
> https://gist.github.com/1725600

If I'm correctly understanding your concerns (and please correct me if
I'm wrong), your qualm is only with the name "Permission" which you
think that should be "Credential".  When you say that many actions may
be satisfied by the same crendential, you're absolutely right.  On my
project we have 6 times more routes than permissions ;-).  So perhaps
I'm already doing what you're proposing but using another name?  Alas,
you could say "permission to modify box" =).

Regarding the foldM, I'm just not used to monadic folds enough to see
them in the heat of battle =).

Thanks for sharing your thoughts!

-- 
Felipe.



More information about the web-devel mailing list