All Projects → vyorkin → ormolu.el

vyorkin / ormolu.el

Licence: other
A formatter for Haskell source code

Programming Languages

emacs lisp
2029 projects

Projects that are alternatives of or similar to ormolu.el

googlejavaformat-action
GitHub Action that formats Java files following Google Style guidelines
Stars: ✭ 66 (+112.9%)
Mutual labels:  formatter
json-formatter
An extensible JSON Viewer, Editor, Formatter, Validator based on Monaco Editor
Stars: ✭ 41 (+32.26%)
Mutual labels:  formatter
street-address
Street address parser and formatter
Stars: ✭ 86 (+177.42%)
Mutual labels:  formatter
SonataFormatterBundle
Symfony SonataFormatterBundle
Stars: ✭ 78 (+151.61%)
Mutual labels:  formatter
format-date
📆 A small library (around 400 B when gziped & minified) to format JavaScript `Date` object using same tokens as moment.
Stars: ✭ 25 (-19.35%)
Mutual labels:  formatter
rspec-github
Formatter for RSpec to show errors in GitHub action annotations
Stars: ✭ 33 (+6.45%)
Mutual labels:  formatter
bafi
Universal JSON, BSON, YAML, CSV, XML converter with templates
Stars: ✭ 65 (+109.68%)
Mutual labels:  formatter
mirtop
command lines tool to annotate miRNAs with a standard mirna/isomir naming
Stars: ✭ 16 (-48.39%)
Mutual labels:  formatter
dockerfile-language-service
Dockerfile language service for providing an API to create feature-rich Dockerfile editors in JavaScript.
Stars: ✭ 15 (-51.61%)
Mutual labels:  formatter
string theory
Flexible modern C++ string library with type-safe formatting
Stars: ✭ 32 (+3.23%)
Mutual labels:  formatter
eslint-formatter-git-log
ESLint Formatter featuring Git Author, Date, and Hash
Stars: ✭ 36 (+16.13%)
Mutual labels:  formatter
Bois
Salar.Bois is a compact, fast and powerful binary serializer for .NET Framework. With Bois you can serialize your existing objects with almost no change.
Stars: ✭ 53 (+70.97%)
Mutual labels:  formatter
vue-translated
Internationalization (i18n) and localization (l10n) library for Vue.js v2.
Stars: ✭ 19 (-38.71%)
Mutual labels:  formatter
li18nt
🌎 Lint your i18n translation files. Detect conflicting properties, duplicates and make it more readable and easier to maintain by formatting it!
Stars: ✭ 29 (-6.45%)
Mutual labels:  formatter
JsonFormatter
Easy, Fast and Lightweight Json Formatter. (Serializer and Deserializer)
Stars: ✭ 26 (-16.13%)
Mutual labels:  formatter
VSLilyPond
VSCode Extension for LilyPond
Stars: ✭ 59 (+90.32%)
Mutual labels:  formatter
bundle outdated formatter
Formatter for `bundle outdated` command
Stars: ✭ 16 (-48.39%)
Mutual labels:  formatter
unicode-formatter
Convert portions of text to fancy text using unicode fonts for use on Twitter and other sites that don't support rich text
Stars: ✭ 31 (+0%)
Mutual labels:  formatter
html-eslint
ESLint plugin for linting HTML
Stars: ✭ 72 (+132.26%)
Mutual labels:  formatter
vscode-nginx-formatter
A simple Formatter, which formats NGINX Configuration Files in VSCode
Stars: ✭ 16 (-48.39%)
Mutual labels:  formatter

ormolu.el

Format Haskell source code using ormolu. Requires reformatter.el.

Usage

With use-package:

(use-package ormolu
 :hook (haskell-mode . ormolu-format-on-save-mode)
 :bind
 (:map haskell-mode-map
   ("C-c r" . ormolu-format-buffer)))

Without:

(push "~/.elib/contrib/reformatter.el" load-path)
(push "~/.elib/contrib/ormolu.el" load-path)
(load-library "ormolu")
(add-hook 'haskell-mode-hook 'ormolu-format-on-save-mode)

Additional configuration

The package can be configured via the usual customize-group RET ormolu mechanism. For example, to enable the TypeApplications extension by default, you can put ("--ghc-opt" "-XTypeApplications") under the "Ormolu Extra Args" option (ormolu-extra-args elisp var).

Notes

This package is just a tiny wrapper on top of the reformatter.el, I mean really tiny, just a few lines of code.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].