This is just a case where I forgot to expose the identifiers. Version 1.2.14 of yesod-core includes these two functions.
`defaultYesodMiddleware` and `authorizationCheck` are part of a hidden package, is there any way to reuse these?
-
04-07-2023 - |
Question
I'm currently trying to write a Yesod Middleware for my library, and I merely want to add some functionality ad-hoc to the default functionality that Yesod provides. You can view the default implementation from Hackage. I don't want to overload my package with unneeded dependencies, but I feel like having defaultYesodMiddleware
hidden is only encouraging it. Also, looking at authorizationCheck
, I have a feeling I will need to include a handful of modules to make it work. Are there any easy ways around this, to keep your code base clean? Thank you in advance for your help.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow