|12 days ago||3 days ago|
|BSD 3-clause "New" or "Revised" License||BSD 3-clause "New" or "Revised" License|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
An alternative front end for Haskell?
3 projects | news.ycombinator.com | 7 Oct 2023
> do you really have to understand language extensions?
You do when your code doesn't compile and you're trying to figure out what the error message means, or when the library you want to use makes heavy use of it for even basic functionality.
> These days one just enables GHC2021
My experience was pre-GHC2021. I basically had to enable at a minimum 5-6 language extensions in every single file.
> Mostly they're just about removing unnecessary restrictions from the older standard.
Yeah, those ones are usually fine. I have zero objection to things like FlexibleInstances or DeriveFoldable.
> Could you give an example?
I believe I was trying to implement Central Authentication Service using Servant. However, that required returning a custom HTTP status code. There has been an open Github issue for this since 2017, but it seems to require basically rewriting the entire framework: https://github.com/haskell-servant/servant/issues/732
Looking back at it now Servant does have "ServerError", but that basically requires giving up all the advantages Servant claims to have and I believe it was not a viable option at the time. Looking at the timeline I was probably also on Servant 0.15, and there seems to have been a rewrite since then.
I vaguely recall running into a similar issue trying to interact with a database, but I can't remember the details of that.
Monthly Hask Anything (November 2022)
3 projects | /r/haskell | 1 Nov 2022
If you don't like this style, the usual alternative is to change mkDualAuthHandler to take two additional arguments, Proxy tag0 and Proxy tag1 (as e.g. lots of Servant functions do, for historical reasons).
How introduce `ResourceT` into my stack
3 projects | /r/haskell | 14 Oct 2022
Dunno if this is helpful, but I found this github issue about ResourceT and servant https://github.com/haskell-servant/servant/issues/1345
Introduction to Doctests in Haskell
6 projects | /r/haskell | 19 Apr 2022
And what about the cabal repl --with-compiler=doctest, which was added recently, in doctest v0.20? I recently submitted a PR for Servant to use this in place of GHC environment files, because it seems less finicky to me. Was this a bad idea?
Generate Typescript from Servant API
5 projects | /r/haskell | 15 Mar 2022
I asked a somewhat relevant question recently. Maybe you'll find this discussion somewhat helpful: https://github.com/haskell-servant/servant/issues/1547; two packages were talked about. One of the folks from Well Typed replied, and said they tried it recently (and worked fine).
Named Routes in Servant
Hey, is it possible this could solve the quadratic compile times issue for Servant routes? I was under the impression the slowdown was related to GHC being slow processing giant types, so maybe breaking the API down into records is just the thing...
You'll actually have to use the unreleased servant-auth-server from master (see here for details). I need to push a release :-)
6 projects | dev.to | 5 Apr 2021
We use servant library that allows us to describe API at the type level and check during the compilation whether both the server handlers and the client functions use correct parameters of the required types and correspond to the current API version (if you forgot to change the client function at the frontend, it just won’t be built).
Saw a Tweet about Haskell+Servant being replaced with NodeJS in a project due to compile times - will compile times ever get better?
2 projects | /r/haskell | 23 Feb 2021
Since nobody has mentioned it yet, there is an outstanding issue about quadratic compile times in Servant.
Generate Kotlin client for a complex web API
7 projects | dev.to | 9 Feb 2023
Failed to create a client for Java. The generator imports Java's types instead of TeamCity's. There are bugs described for the Java client in both the Swagger generator and the OpenAPI generator. Let's see how the generator behaves when building a Kotlin client.
Alguma alma caridosa UI/UX dev, para um serviço púbico gratuito, livre e de código aberto?
6 projects | /r/portugal | 16 Dec 2022
Recommendations for Rust Open-API client generators? (Looking to experiment with api.congress.gov)
4 projects | /r/rust | 9 Sep 2022
[swagger-codegen](https://github.com/swagger-api/swagger-codegen) generates code from an OpenAPI definition, and it supports Rust code output (client and/or server).
Document your API with OpenAPI standard
4 projects | dev.to | 29 May 2022
Swagger contains three greats tools to work with the specification: Swagger UI, Swagger Editor and Swagger Codegen. The Swagger UI renders OpenAPI specs as interactive API documentation, Swagger Editor is a browser-based editor where you can write OpenAPI specs and Swagger Codegen generates server stubs and client libraries from an OpenAPI spec like the OpenAPI generator.
Using Swagger API
6 projects | dev.to | 18 Mar 2022
We ran into some minor issues (#1201, #1210, #1355, #1356 and #1769) and fixed some stuff we stumbled upon along the way, although it didn't really bother us as well (#1451 and #1769).
Integrating Swagger/OpenAPI generated python server with existing Flask application
2 projects | /r/codehunter | 16 Mar 2022
I am interested in integrating a swagger-codegen generated Python server with an existing Flask application. swagger-codegen generates a Python implementation based on the Connexion library from a Swagger API specification.
Should I migrate to TS?
3 projects | /r/reactjs | 10 Feb 2022
Creating TS types/interfaces manually can be tedious. But, if you have JSON responses of your APIs, you can quickly convert those JSON responses to TS interfaces using VS Code extension Paste JSON as Code. Also, if your backend already uses Swagger for API, you can auto-generate all the TS types of your API models using swagger-codegen
Where are the documentation for server stub generation with swagger codegen?
2 projects | /r/SpringBoot | 9 Feb 2022
git clone https://github.com/swagger-api/swagger-codegen cd swagger-codegen java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \ -i https://petstore.swagger.io/v2/swagger.json \ -l spring \ -o samples/server/petstore/springboot2 projects | /r/SpringBoot | 9 Feb 2022
Mmmm, sparkling JSON
6 projects | /r/ProgrammerHumor | 9 Oct 2021
Specifically for automatically generating code like clients, check out https://github.com/swagger-api/swagger-codegen
What are some alternatives?
openapi-generator - OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
servant-purescript - Translate servant API to purescript code, with the help of purescript-bridge.
oapi-codegen - Generate Go client and server boilerplate from OpenAPI 3 specifications
NSwag - The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
yesod-persistent - A RESTful Haskell web framework built on WAI.
haskell-bitmex-client - Haskell API for BitMEX
servant-ts - See the docs and live playground here
graphql-api - Write type-safe GraphQL services in Haskell
graphql - Haskell GraphQL implementation
swagger-petstore - swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
stripe-core - :moneybag: Stripe API