feat(users/Profpatsch/mailbox-org): init

A smol little tool to talk to the mailbox.org backend. This is handy
for eventually setting stuff like email filters. Their API is absolute
crap, but we’ll deal with it.

Updates the prelude & adds some pretty printing helpers.

Change-Id: Ie3688f8ee1d7f23c65bcf4bfecc00c8269dae788
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7717
Reviewed-by: Profpatsch <mail@profpatsch.de>
Autosubmit: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
This commit is contained in:
Profpatsch 2023-01-01 22:44:02 +01:00 committed by clbot
parent e5fa10b209
commit 7168cb0ed3
7 changed files with 334 additions and 45 deletions

View file

@ -0,0 +1,16 @@
{ depot, pkgs, lib, ... }:
let
cas-serve = pkgs.writers.writeHaskell "mailbox-org"
{
libraries = [
depot.users.Profpatsch.my-prelude
pkgs.haskellPackages.aeson
pkgs.haskellPackages.http-conduit
];
ghcArgs = [ "-threaded" ];
} ./MailboxOrg.hs;
in
cas-serve