`defaultYesodMiddleware` and `authorizationCheck` are part of a hidden package, is there any way to reuse these?

StackOverflow https://stackoverflow.com/questions/23113011

  •  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.

Était-ce utile?

La solution

This is just a case where I forgot to expose the identifiers. Version 1.2.14 of yesod-core includes these two functions.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top