@hackage mig0.2.1.0
Build lightweight and composable servers
Categories
License
BSD-3-Clause
Maintainer
anton.kholomiov@gmail.com
Links
Versions
Installation
Dependencies (21)
- aeson
- base >=4.7 && <5
- blaze-html
- bytestring
- case-insensitive
- containers Show all…
Dependents (5)
@hackage/mig-wai, @hackage/mig-server, @hackage/mig-swagger-ui, @hackage/mig-client, @hackage/mig-extra
Core mig library
Core mig library provides tools to build HTTP servers and APIs. With this library we can build lightweight and composable servers. It is sort of servant for Simple/Boring haskell.
We build servers with type-safe DSL and we can convert a server to low-level server representation and to OpenApi schema.
Servers can be rendered to low level representation of ServerFun:
type ServerFun m = Request -> m (Maybe Response)
There is library mig-wai that can convert ServerFun to Wai.Application
and we can run it with warp (see library mig-server for that).
The HTTP Api can be converted to OpenApi value defined in openapi3 library.