servant
Cabal
Our great sponsors
servant | Cabal | |
---|---|---|
16 | 84 | |
1,768 | 1,563 | |
0.4% | 0.7% | |
7.5 | 9.8 | |
5 days ago | 6 days ago | |
Haskell | Haskell | |
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.
servant
-
An alternative front end for Haskell?
> 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.
-
Question: Servant with NamedRoutes and Swagger
a HasSwagger instance for NamedRoutes was added in May 2022 (in this commit) but there hasn't been a package release since March
-
Monthly Hask Anything (November 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
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
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
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
-
[ANN] Servant 0.19 release
You are highly encouraged to test this release out and let us know what you think ! For bug reports, features requests or any kind of feedback, just open a ticket on our issue tracker.
-
[Servant] Best practices to not mixup routes with same signatures.
Even slower than :<|> quadratic compile time in number of routes?
-
Help with servant-client
Check this out https://github.com/haskell-servant/servant/issues/335#issuecomment-172300487
Cabal
-
Would anyone be interested in hoot: A cabal wrapper for haskell based on Cargo?
Also, there's already a cabal RFC to support toml: https://github.com/haskell/cabal/issues/7548
-
On the verge of giving up learning Haskell because of the terrible tooling.
Cabal has a lot of dark corners once you stray from the happy path. Just checked and I'm currently subscribed to 37 threads on the issue tracker, and I'm not a maintainer. A lot of these are related to lesser-used features like cabal scripts, environment files and doctests (though I think all of these things would used more if they were more reliable), but there's also plenty of stupid stuff like: - https://github.com/haskell/cabal/issues/3313 - https://github.com/haskell/cabal/issues/8527 - https://github.com/haskell/cabal/issues/8391 - https://github.com/haskell/cabal/issues/7789 - https://github.com/haskell/cabal/issues/6888 - https://github.com/haskell/cabal/issues/6999 - https://github.com/haskell/cabal/issues/5271
-
Problems installing hindent witch haskell tool stack on windows 10
Given that Mike Pilgrim (the Stack maintainer) is on Windows, and Cabal has issues on Windows, I think it might be easier to get Windows specific fixes merged in Stack.
-
Help figuring out output from Cabal resolver
The error message is not too helpful. This is the target of a long-standing ticket: https://github.com/haskell/cabal/issues/7993 Your help would be very welcome.
-
There is No “Tooling Issue” in Haskell
By the way, there are some open issues for the command to add a package in Cabal.
-
Why GHCi is my new calculator
That's interesting. Could you could open a an issue about this? https://github.com/haskell/cabal/issues
- Any open source projects to contribute to for beginners
-
The best way to add a flag to copy documentation to given location?
I created this issue a few months ago: https://github.com/haskell/cabal/issues/8270
-
Trying to figure out cabal dependency management
Reported this as a bug in cabal.
-
JavaScript backend merged into GHC | IOG Engineering
We definitely plan to have benchmarks once we start working on performance. We haven't started yet because there were more urgent tasks. For example: ensuring that the testsuite runs on CI with the JS backend (should be completed this week or the next), ensuring that the toolchain works properly (we're writing a tutorial and we've found new bugs, e.g. yesterday I've fixed the support for js-sources in Cabal https://github.com/haskell/cabal/pull/8636), adding TH support...
What are some alternatives?
servant-ts - See the docs and live playground here
stack - The Haskell Tool Stack
graphql - Haskell GraphQL implementation
haskell.nix - Alternative Haskell Infrastructure for Nixpkgs
loli
static-haskell-nix - easily build most Haskell programs into fully static Linux executables
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.
cartel
gc-monitoring-wai - a wai application to show `GHC.Stats.GCStats`
hackage-repo-tool - Hackage security framework based on TUF (The Update Framework)
servant-blaze
codeworld - Educational computer programming environment using Haskell