mig
mig copied to clipboard
Lightweight and composable servers for Haskell
Creates library for simple interfaces for common server tasks: * Logging * DB * etc.
We can create benchmarks and try to improve internals to make server better.
We can define any type suitable for clients and make a client for it with toClient function. No error will prevent us from convertion to wrong type. From server definition...
We can derive `ToClient` for any record type if all fields are also inside `ToClient` with generics. If we implement it we can write the client code: ```haskell data Routes...
We can generate API-types, server stub and client. From openapi schema. By openapi input it will generate 3 packages: * foo-api-types * foo-server * foo-client The server is defined in...
Streaming case is missing for HTTP-response.
we can cover most useful cases with recipes. It can be a chapter in the tutorial like `FAQ`.
We can add similiar to servant case CaptureAll which packs all path items at the end to list: ```haskell newtype CaptureAll = CaptureAll [Text] ``` See servant-openapi3 for how to...
Error: ```txt Failed to build mig-swagger-ui-0.1.0.1. Build log ( /home/user/.cache/cabal/logs/ghc-9.6.6/mig-swagger-ui-0.1.0.1-4af48f9593fb22b089e9038b08d7709cf739c13aa3df0f0ab2acc6a5a4d642cc.log ): Configuring library for mig-swagger-ui-0.1.0.1... Preprocessing library for mig-swagger-ui-0.1.0.1... Building library for mig-swagger-ui-0.1.0.1... [1 of 2] Compiling Mig.Swagger ( src/Mig/Swagger.hs,...