continue-custom/docs/docs/languages/haskell.md
2023-11-06 19:10:55 -08:00

4.1 KiB
Raw Blame History

Haskell

Haskell is the #32 most popular language according to the 2023 Stack Overflow Developer Survey.

Benchmarks

❌ Haskell is not one of the 19 languages in the MultiPL-E benchmark

✅ Haskell is one of the 16 languages in the BabelCode / TP3 benchmark

❌ Haskell is not one of the 13 languages in the MBXP / Multilingual HumanEval benchmark

❌ Haskell is not one of the 5 languages in the HumanEval-X benchmark

Datasets

✅ Haskell makes up 6.95 GB of The Stack dataset

✅ Haskell makes up 1.85 GB of the CodeParrot dataset

❌ Haskell is not included in the AlphaCode dataset

❌ Haskell is not included in the CodeGen dataset

❌ Haskell is not included in the PolyCoder dataset

Stack Overflow & GitHub presence

Haskell has 50,979 tagged questions on Stack Overflow

Haskell projects have had 106,539 PRs on GitHub since 2014

Haskell projects have had 146,857 issues on GitHub since 2014

Haskell projects have had 646,012 pushes on GitHub since 2014

Haskell projects have had 306,235 stars on GitHub since 2014

Anecdotes from developers

u/lgastako

I've been generating a ton of Haskell code with it and it's been fantastic. I have a driver for content addressable storage in my side project, it's pretty simple, but it still took me a few hours each to implement local filesystem and MinIO drivers with tests and ChatGPT did the bulk of the work for Redis and LevelDB implementations in minutes. I've also found it much easier to work with on Haskell code than on python or JS. Obviously some of this is the usual reasons why I would find Haskell code easier to deal with than dynamic languages but I think that the effect is amplified with ChatGPT because the "if it compiles it works" affect gives me much more confidence that what it generated isn't missing anything important than with the other languages, so I can move much faster.

u/qqwy

Personally, I've been using Copilot mostly in Ruby (work...) and Haskell, and it is much better at predicting Haskell code. I think it's because Haskell has so much context (type signatures, purity, only imported modules are in scope) which greatly restrict what you can do in a particular function and thus Copilot's suggestions seem to be much more often in line with what I wanted to write.

Chris Smith

Here, I present the (lightly edited) story of using ChatGPT conversationally to solve a non-trivial problem in Haskell. It definitely gets some things wrong, and it’s still unclear whether co-developing this with ChatGPT made anything easier than it would have been otherwise. But in any case, it was definitely a different and less lonely experience than just programming on my own.