tvl-depot/users/Profpatsch/openlab-tools
Profpatsch 3b882d7510 feat(users/Profpatsch/openlab-tools): introduce handler abstraction
I’ve been wanting to experiment with this stuff for a while,
abstracting away a handler type.

The existentials for parser and body took a bit of mucking about, but
in the end hiding the variable behind a `Body` constructor did the
trick.

Now every handler has its own cache, which means we can start caching
arbitrary results.

Change-Id: If57230c47f97ef4c548683f2c2f27660817a31f2
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9812
Autosubmit: Profpatsch <mail@profpatsch.de>
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
2023-10-20 21:14:14 +00:00
..
src feat(users/Profpatsch/openlab-tools): introduce handler abstraction 2023-10-20 21:14:14 +00:00
default.nix fix(users/Profpatsch/openlab-tools): add cache headers 2023-10-20 18:19:43 +00:00
Main.hs feat(users/Profpatsch): init openlab-tools 2023-10-19 20:59:12 +00:00
openlab-tools.cabal fix(users/Profpatsch/openlab-tools): add cache headers 2023-10-20 18:19:43 +00:00