I was inspired by Felipe Lessa's post about abstracting Yesod
permissions. Thanks for writing it,
Felipe! I had only just discovered isAuthorized
, and that post made me all
the more excited to go about refactoring my authorization code.
Unfortunately I had a little trouble working Felipe's method into my own
project. This was probably due in no small part to my too-recent discovery of
isAuthorized
and the AuthResult
type. After much tinkering, I narrowed the
difficulties down to just one (and a half) points of contention: