tvl-depot/website/sandbox
William Carroll 4ff1ea291c Drop support for ServantT transformer type for server
After burning a few hours wrestling with the type system, I decided to revert to
the simpler `Server API` type instead of the `ServantT` transformer type.

The problem is that I couldn't write a MonadError instance for `RIO Context`,
which is my `AppM` (i.e. application monad). Using `throwIO` in the server
handlers results in 500 errors, which is not what I wanted. I'm still pretty
fuzzy about what's happening; I now know that exception handling in Haskell is
pretty gnaryly. I may revisit this at a later time when my knowledge is more
extensive. For now: time to fry bigger fish.

An easier abstract is for me to pass `T.Context` into `server` as an argument,
which after all is what a Reader does.

TL;DR:
- Read server, client ports from .envrc
- Define a top-level Failure type (empty for now)
- Define a top-level Success type
- Define App as RIO Context (Either Failure Success)
2020-08-10 15:02:05 +01:00
..
contentful Prefer builtins.path 2020-07-02 13:28:59 +01:00
covid-uk Prefer builtins.path 2020-07-02 13:28:59 +01:00
github-issues-service Create README for Github Issues Service 2020-04-10 13:40:04 +01:00
learnpianochords Drop support for ServantT transformer type for server 2020-08-10 15:02:05 +01:00
typo-po Add README for typo-po 2020-04-10 13:54:33 +01:00
default.nix Prefer builtins.path 2020-07-02 13:28:59 +01:00
index.html Run Prettier across projects 2020-03-27 10:59:50 +00:00