2017 state of Haskell survey results
November 29, 2017 update: The anonymized responses, both JSON and CSV, now include the answers to free response questions.
Before we look at the responses themselves, let's take a look at when they were submitted.
I opened the survey in the morning on Wednesday, November 1, 2017. It stayed open for one week. Most people responded in the first few days. A significant number of people responded on the last day. Keeping the survey open for a week felt right. I think I'll do that again next year.
Now let's take a look at the survey responses.
- What is your email address?
- Do you use Haskell?
- If you stopped using Haskell, how long did you use it before you stopped?
- If you stopped using Haskell, why did you stop?
- If you don't use Haskell, why not?
- How long have you been using Haskell?
- How frequently do you use Haskell?
- Where do you use Haskell?
- How do you use Haskell at work?
- If you don't use Haskell at work, why not?
- What is the total size of all the Haskell projects you work on?
- Which platforms do you develop on?
- Which platforms do you target?
- Which Haskell compilers do you use?
- If you use GHC, how do you install it?
- If you use GHC, has upgrading it broken your code in the last year?
- If upgrading GHC broke your code in the last year, how did it break?
- If you use GHC, which versions of it do you use?
- Have you ever contributed to GHC?
- If you have not contributed to GHC, why not?
- Which language extensions would you like to be enabled by default?
- Which build tools do you use?
- What is your preferred build tool?
- Which editors do you use for Haskell?
- Which version control systems do you use for Haskell?
- Where do you get Haskell packages from?
- Have you contributed to an open source Haskell project?
- If you have not contributed to an open source Haskell project, why not?
- How do you interact with the Haskell community?
- How would you rate your proficiency in Haskell?
- I am satisfied with Haskell as a language.
- I am satisfied with Haskell's build tools (such as cabal-install or Stack).
- I am satisfied with Haskell's package repositories (such as Hackage or Stackage).
- I can find Haskell libraries for the things that I need.
- I think Haskell libraries are high quality.
- I think Haskell libraries are well documented.
- I can easily compare Haskell libraries to select the best one.
- I find Haskell libraries easy to use.
- I find that Haskell libraries provide a stable API.
- I find that Haskell libraries work well with other libraries.
- I find that Haskell libraries perform well.
- I can easily reason about the performance of my Haskell programs.
- In your opinion, what is Haskell's biggest problem?
- If you could change anything about Haskell's community, what would it be?
- Do you have any other comments about Haskell, its ecosystem, its community, or this survey?
Almost exactly 75% of people provided their email address. That number feels low. For next year's survey, I will be clearer about how your email address will be used.
Not surprisingly, most of the responders use Haskell. Although the survey mainly targeted Haskell users, I am grateful to the non-users who responded. Hopefully some of you will consider using Haskell again!
Most people used Haskell for a significant amount of time before stopping. Haskell has a reputation for being hard to learn. I think this data supports that reputation. Even if you have been using Haskell for a year, you might still give up on it because it's either too hard or simply not worth it.
Fascinating language and I really wanted to like it, but: not beginner-friendly; hard to debug errors; hard to reason about performance; relative lack of use in industry; fewer libraries; lack of a well-supported and actively maintained way to target JS.
A common thread in these answers was finishing a Haskell project and moving on to something else. Sometimes that meant completing a school assignment where the next thing was in a different language. Other times it meant wrapping up a project and deciding that it wasn't worth it to keep using Haskell.
Another common response was a lack of support at work. Usually this meant that Haskell didn't make the short list of blessed languages. Sometimes it meant that Haskell couldn't be introduced to the rest of the team because it's not familiar enough or too difficult to teach.
In both cases it was common to mention switching to another language. Scala, F#, Rust, and PureScript were popular choices.
The barrier to entry is huge. The install size of the tooling is huge. Installing or building from source any tool built in Haskell inevitably involves downloading hundreds of megabytes of stuff. The fascination with concepts and naming of concepts that don't appear elsewhere is off-putting to beginners.
The most common reason for not using Haskell is that it's hard to learn. In particular, the documentation is bad and there is a lack of tutorials covering beginner and intermediate topics.
Problems with tooling also contribute to people not using Haskell. For example, there is no good Haskell IDE. Also the whole Haskell toolchain uses a lot of disk space.
It was also common to see complaints about Haskell being too academic or not practical enough for real world usage.
Most people have been using Haskell for a long time. This is encouraging because it means learning and using Haskell is worth it to those people. However, the relative lack of new users is not great. Only 22% of Haskell users have been using it for less than a year. For next year's survey, I will be splitting the "more than a year" choice into more discrete choices.
Most people use Haskell at least once a week. This is impressive since most people don't use Haskell at work. That means Haskell is compelling enough to use again and again for hobby projects.
Almost everyone uses Haskell at home. Haskell is also a popular choice at school. Unfortunately it's not as popular at work, but see the next question.
I'm not sure why fewer than 200 people said they use Haskell at work in the previous question but more than 600 said they use Haskell at work at least some of the time in this question. Regardless, there are more people who use Haskell at work than those who don't. That's great!
We usually do not have the need for anything faster (in execution) than Python and Python cuts development times by offering multitude of libraries. Static typing usually also gets trumped by functional tests.
Overall the answers to this question were similar to question 4. One thing worth pointing out here is that many people are the only Haskell users at their workplace. Convincing the rest of their team to use Haskell doesn't seem feasible.
Small to medium size Haskell projects are the most popular. That being said, there are a fair number of large to huge Haskell projects out there.
Linux is far and away the most popular build platform. macOS comes in second with Windows bringing up the rear. A BSD was the most common choice for people not using one of the big three.
This mirrors the build platforms. It's interesting to note that more people target Windows than build on it. The opposite is true for macOS.
GHC won, hands down. For all intents and purposes, Haskell is GHC. The most popular "other" response was GHCJS.
Stack is clearly the preferred way to install GHC. It's more than three times as popular as operating system packages in second place. I did receive feedback that the official binaries and Nix were missing. I'll be sure to add those to next year's survey.
Upgrading GHC was not a problem for 84% of people in the past year. This makes sense because the 8.2.1 release focused on performance and stability. However it also added some new big ticket features like the Backpack module system.
GHC fixed several issues around overlapping instances lately, that triggered warning in my code base. Since we use
-Werroras a policy with the code base, the builds broke. Never the less I was really happy to find out errors in my understanding around the issues and fixing my code actually improved it very much.
Most of the breakage included basic stuff like AMP, FTP, and dependency resolution. Finding a set of dependencies that works with the latest compiler is a common problem.
The next biggest chunk of breakage included advanced features like the GHC API, Template Haskell, generics, and language extensions. Many users admitted that breaking changes weren't surprising here, but they still needed to be dealt with.
A significant number of people mentioned that they build with
and upgrading introduced new warnings that broke their build.
Most were happy to have new warnings and didn't see this as a problem.
Most people use a version of GHC that was released in the past year. Going back two years to GHC 7.10.3 covers 90% of the user base. My takeaway here is that even though operating system packages might provide older versions of GHC, most people will be using a newer version. Don't spend too much time supporting old versions of GHC.
Only 1 out of every 10 Haskell users have contributed to GHC. I am not too surprised by these results, given that GHC already has the features most people want and it's an intimidating code base.
Organizing everything through mailing lists seems so complicated and outdated. It would be much easier to get involved if everything was on GitHub. By comparison, I have contributed to
Most people didn't see a need to contribute to GHC. For those that did, they either didn't have enough time or felt they lacked the experience necessary to contribute. Many people felt that they needed to be an expert Haskell developer to contribute to GHC.
Complaints about GHC's development and build processes were also common. Many people expressed an interest in GHC being hosted on GitHub.
Download these responses as a CSV.
These are the top ten desired language extensions. Overloaded strings is by far the most popular. However I encourage you to look at the CSV, as 42 language extensions got more than 100 votes.
Stack is used by more than twice as many people as Cabal.
Both Nix and raw
ghc-pkg are used by a surprising number of people.
The most popular build tool other than the top four is Mafia.
In spite of being a relative newcomer, Stack is clearly the preferred build tool for Haskell users. It was first released a little over two years ago. Now five times the number of people use it as their preferred build tool compared to Cabal.
Vim and Emacs, the old standbys, are the favorites here. Interestingly Haskell users are split evenly between the two editors. The Electron-based Visual Studio Code and Atom editors are both pretty popular. The most popular editor not listed here is IntelliJ IDEA.
Git is easily the most popular version control system for Haskell users. Interestingly the new VCS Pijul was the most popular "other" choice.
Stackage barely edged out Hackage as the most popular package repository. That means some people never need to get a package that isn't in their Stackage snapshot. Downloading source is also a surprisingly popular method of getting Haskell packages. The most popular choice not listed here was Nix.
More people are open source contributors than not, but it's almost an even split.
Very unclear how to engage. I don't know if my contributions would be taken seriously or will be reprimanded because of my lack of knowledge on Haskell. Just to be honest, I don't know how much I don't know and feel my contributions would be useless.
A lack of time was the biggest hurdle to contributing to open source Haskell projects. This makes sense when you consider that most Haskell users are either hobbyists or students. They are likely to spend their time on their own projects.
Many people wanted to contribute to something but felt that they lacked the skill to make a meaningful contribution. As the maintainer of several open source Haskell projects, I want to take a moment to say: I welcome contributions from Haskell users of all skill levels! Please open an issue or a PR, even if you just started learning Haskell today.
Reddit is the main hub for the Haskell community. Twitter, IRC, Stack Overflow, and mailing lists are pretty much in a four way tie for second place. The most popular choices not listed here are GitHub and Gitter.
Most people consider themselves intermediate Haskellers. Haskell is a big, complicated language, and few people consider themselves experts of it.
(Questions 31 through 42 rated things on a Likert scale. By summing the responses, the twelve questions can be compared against each other.) Rank: 1 of 12 (best). Haskell users are extremely satisfied with the language itself.
Rank: 4 of 12. Haskell users are satisfied with the build tools.
Rank: 3 of 12. Haskell users are satisfied with the package repositories.
Rank: 2 of 12. Haskell users are extremely satisfied with the quality of libraries. It's interesting to compare this result to the next two questions. Haskell libraries are high quality but poorly documented and hard to choose between.
Rank: 10 of 12. Haskell users are unsatisfied with library documentation. This is a common complaint.
Rank: 12 of 12 (worst). Haskell users are extremely unsatisfied with the ability to compare libraries. I am not at all surprised to see this at the bottom of the list. There is no good way to compare libraries that solve the same problem. In fact, there's often no good way to even discover other similar libraries.
Rank: 9 of 12. Haskell users are unsatisfied with the ease of libraries. The lack of good documentation no doubt contributes to this.
Rank: 7 of 12. Haskell users are satisfied with library stability.
Rank: 8 of 12. Haskell users are satisfied with library compatibility.
Rank: 6 of 12. Haskell users are satisfied with library performance.
Rank: 11 of 12. Haskell users are extremely unsatisfied with their ability to reason about the performance of their programs. This is interesting to compare to the previous question because even though Haskell libraries are performant, making performant programs is still hard. This is a common complaint about Haskell that its pervasive laziness contributes to.
Haskell's strongest point is its biggest problem at the same time: it's too powerful. One can express pretty much anything, but there are no strongly accepted best practices or design patterns for a lot of tasks.
Almost 1,000 people answered this question, giving more than 20,000 words of feedback. It's nearly impossible to distill it down into key points.
Most of the big problems were covered by other questions and expanded upon here.
I think the community has a lot of very grown-up, intelligent, and thoughtful people, generally open to exchange. Having said that, I also have the impression that we tend to over-complicate a lot of things instead of trying to get the simplest possible solutions to a lot of problems.
Most people want the Haskell community to be bigger. To that end, many people want the community to be less divisive (for example Stack versus Cabal) or less elitist (for example putting down other languages). Also more beginner and intermediate documentation and tutorials would help.
Too bad the questions forced me to show the bad side of Haskell. This is by far my preferred language. The one I think in when I close my eyes. When I code in Haskell after a day having coding in Clojure I'm so relieved.
It's hard to summarize these responses as they varied quite a bit. Even so, most of them were positive and hopeful. In spite of the gripes, people generally like Haskell and its community.