1
0
Fork 0
mirror of https://code.sup39.dev/repos/Wqawg synced 2025-01-15 15:15:08 +09:00
vervis/src/Yesod
fr33domlover 6df2200f47 Yesod.MonadSite module gets some nice upgrades
- Fork and async are no longer class methods, which simplifies things a lot and
  allows for many more trivial instances, much like with MonadHandler. Fork and
  async are still available, but instead of unnecessarily being class methods,
  they are now provided as follows: You can fork and async a worker (no more
  fork/async for handler, because I never actually need that, and not sure
  there's ever a need for that in general), and you can do that from any
  MonadSite. So, you can fork or async a worker from a Handler, from a Worker,
  from a ReaderT on top of them e.g. inside runDB, and so on.
- Following the simplification, new MonadSite instances are provided, so far
  just the ones in actual use in the code. ReaderT, ExceptT and lazy RWST. More
  can be added easily. Oh, and WidgetFor got an instance too.

In particular, this change means there's no usage of `forkHandler` anymore, at
all. I wonder if it ever makes a difference to `forkWorker` versus
`forkHandler`. Like, does it cause memory leaks or anything. I guess could
check why `forkResource` etc. is good for in `forkHandler` implementation. I
suppose if needed, I could fix possible memory leaks in `forkWorker`.
2019-06-14 17:10:12 +00:00
..
Auth Upgrade to GHC 8.4 and LTS 12 2018-12-05 03:41:19 +00:00
Paginate Switch all HandlerT/WidgetT uses to HandlerFor/WidgetFor 2019-05-23 09:12:24 +00:00
Persist Add route getMessageR, returns an Activity Note for any locally created Message 2019-03-22 20:46:42 +00:00
ActivityPub.hs Syntax-highlight the pretty JSON display of AP objects 2019-06-09 14:32:57 +00:00
FedURI.hs Implement getOutboxR, both (trivial) HTML and AS2 2019-05-20 23:51:06 +00:00
Hashids.hs Add field localMessageCreate, pointing to the OutboxItem that created it 2019-05-25 03:23:57 +00:00
MonadSite.hs Yesod.MonadSite module gets some nice upgrades 2019-06-14 17:10:12 +00:00
RenderSource.hs Syntax-highlight the pretty JSON display of AP objects 2019-06-09 14:32:57 +00:00
SessionEntity.hs Upgrade to GHC 8.4 and LTS 12 2018-12-05 03:41:19 +00:00