dprint vs stylish-haskell
dprint
dprint.devstylish-haskell
github.comSide by side
| Figure | dprint | stylish-haskell |
|---|---|---|
| Price from | Free | — |
| Free plan | Yes | — |
| Free trial | — | — |
| Open source | — | — |
| Windows | Yes | Yes |
| macOS | Yes | — |
| Linux | Yes | Yes |
| Self-hosted | Yes | — |
| Plans published | 1 | 0 |
| Spec score · Code Formatting Tools | 8.1 (#7) | 6.8 (#30) |
| Configuration | Projects use dprint.json, dprint.jsonc, .dprint.json or .dprint.jsonc files to define plugins, formatting settings, includes and excludes. | Formatting is customizable through YAML configuration files, with settings available at directory, project, user, or default level. |
| Editor integrations | The installation guide lists Visual Studio Code, IntelliJ and Neovim integrations, with the dprint language-server command usable by other editors. | The README documents integration with Haskell Language Server, Vim, Emacs, Atom, and Visual Studio Code. |
| Installation | The CLI is distributed as a single static binary with no runtime dependencies and can be installed via shell, PowerShell, Scoop, Homebrew, Cargo, npm, uv, mise, asdf or Arch Linux. | The README documents installation with Stack or Cabal and package-manager installation for Debian, Ubuntu, and Arch Linux. |
| License | The dprint GitHub repository is marked MIT licensed. | Hackage lists the package under the BSD-3-Clause license. |
| Purpose | dprint is a command-line application that automatically formats code. | stylish-haskell is a Haskell code prettifier designed to help with formatting tasks such as cleaning up import statements. |
| Support | The official contact page directs users to email [email protected]. | The project welcomes feature requests through its GitHub issue tracker. |
Plans
In their own words
dprint
dprint is a command-line application that automatically formats code through a configurable, pluggable system built with Rust and WebAssembly. Its official and wrapper plugins cover languages and formats including TypeScript, JavaScript, JSON, Markdown, TOML, CSS, Dockerfile, C#, Python, Go, Swift, GraphQL, YAML, PHP, LaTeX, R, and Julia. Project configuration files define plugins, formatting settings, included files, and exclusions. Plugins can be loaded from a URL or file path and pinned or versioned in configuration. The project says dprint formats hundreds of files in milliseconds and enables incremental caching by default. WebAssembly plugins run in a sandbox without network or file-system access, while process plugins are executable files and are not sandboxed. Editor integrations are listed for Visual Studio Code, IntelliJ, and Neovim; the language-server command can also be used by other editors. The CLI is distributed as a static binary with no runtime dependencies, with installation options including shell, PowerShell, Cargo, npm, and Homebrew. It is MIT-licensed and free.
stylish-haskell
stylish-haskell has no write-up on Specifiction yet; its figures are above.