← All repos

ormolu

A formatter for Haskell source code

formatterhaskell
Browse cluster: Haskell tooling and libraries
805commits
62contributors
4languages

Tech stack & purpose

Ormolu is a formatter for Haskell source code created by Tweag that uses GHC's own parser and aims for a single, non-configurable formatting style with minimal diffs and idempotent output. The project is built in Haskell and includes a browser-based interface called Ormolu Live using the Miso framework with GHC's WASM backend, as well as a utility called extract-hackage-info that builds a database of operator fixities from Hackage packages to ensure correct formatting of operator chains. The formatter integrates with popular editors including Emacs and VS Code, supports the Haskell Language Server, and can be used as a library via its top-level Ormolu module.

Community & reference links

Languages

Haskell
96.9%
Nix
2.6%
Shell
0.3%
JavaScript
0.2%

Contributors (top 30 of 62)