bde02d5f45
Add `authVal` to BasicAuth, assist type inference Type inference is difficult with `BasicAuth` and `BasicAuthLookup`. This is because `BasicAuthLookup` introduces a type variable `authVal` and is not bound to anything when used in the context of `HasServer`'s type. Servant compiles (temp commit - delete) |
||
---|---|---|
.. | ||
example | ||
src | ||
test | ||
CHANGELOG.md | ||
LICENSE | ||
README.md | ||
servant-server.cabal | ||
Setup.hs | ||
tinc.yaml |
servant-server
This library lets you implement an HTTP server with handlers for each endpoint of a servant API, handling most of the boilerplate for you.
Getting started
We've written a tutorial guide that introduces the core types and features of servant. After this article, you should be able to write your first servant webservices, learning the rest from the haddocks' examples.