ormolu
A formatter for Haskell source code (by tweag)
ghcid
Very low feature GHCi based IDE (by ndmitchell)
Our great sponsors
ormolu | ghcid | |
---|---|---|
7 | 12 | |
914 | 1,120 | |
1.0% | - | |
8.0 | 4.0 | |
17 days ago | 28 days ago | |
Haskell | Haskell | |
GNU General Public License v3.0 or later | BSD 3-clause "New" or "Revised" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
ormolu
Posts with mentions or reviews of ormolu.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-28.
-
Browser to Haskell Wasm Reactor Module Communication Example
I have a similar example based on Ormolu live. I wonder if there are any libraries being developed to send data back and forth?
-
Format multiline imports in hls (emacs)
You will also need a formatter that uses that style. Brittany for example. The default formattingProvider for HLS is ormolu, which I believe doesn't use this style, so you will have to change this setting.
- Monthly Hask Anything (February 2022)
- Open source projects for beginners
-
Advent of Code 2021 day 1
Turns out I prefer Brittany to Ormolu, I edited it so it hopefully looks less verbose all on one line
-
Emacs for Haskell
For code formatting ormolu is a good option
ghcid
Posts with mentions or reviews of ghcid.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-08.
-
Static-ls - a low memory Haskell language server based on hiedb and hiefiles
With a combination of ghcid, an hiedb filewatcher and the -fdefer-type-errors flag you can get pretty solid IDE behavior. Currently only ghc 9.4.4 is supported but happy to personally help people set this up if interested!
- Open source projects for beginners
-
TDD for AoC?
In addition, for Haskell, I usually have ghcid running, which likewise re-runs on every file change, but gives faster feedback about any type errors than the full compiler, and also is configured to evaluate
-
Most braindead easy end to end haskell workflow?
VS Code + Haskell extension is usually best, but ghcid is an alternative which is much simpler, easier to set up, less pretty and powerful but still pretty easy and effective to use. Here's a workflow:
-
Fast way to run Haskell script from nvim?
you should also checkout the ghci vim plugin https://github.com/ndmitchell/ghcid/tree/master/plugins/nvim
-
Can't get things to work. It is normal to learn haskell with plain vim?
I just went through the same thing. I settled on using stack and ghcid. All it does is recompile on any change to source code so you at least get lightning fast feedback. Both stack and ghcid have been easy to install and use so far.
-
Why Clojure?
Have you tried out ghcid? It basically just runs ghci on your program every time you save, and gives an updated list of errors and warnings. Not interactive in the sense that you don't manually test your functions with it, but like 95% of debugging in Haskell is just fixing errors at compilation time. I find it to be a very nice developer experience. Just need a text editor and a terminal with ghcid open and you get immediate feedback as you program.
What are some alternatives?
When comparing ormolu and ghcid you can also consider the following projects:
fourmolu - A fourk of ormolu that uses four space indentation and allows arbitrary configuration. Don't like it? PRs welcome!
haskell-language-server - Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
brittany - haskell source code formatter
ghci-ng
stack - The Haskell Tool Stack
ghcide - A library for building Haskell IDE tooling
hlint - Haskell source code suggestions
hadolint - Dockerfile linter, validate inline bash, written in Haskell
fugue - A recapitulated prelude with minimal dependencies and profligate exports.
normalize-imports - Sort and align Haskell import statements
lsp-haskell - lsp-mode :heart: haskell