./devel/fourmolu, Formatter for Haskell source code

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.15.0.0nb1, Package name: fourmolu-0.15.0.0nb1, Maintainer: pkgsrc-users

Fourmolu is a formatter for Haskell source code. It is a fork of Ormolu,
with the intention to continue to merge upstream improvements.

We share all bar one of Ormolu's goals:

* Using GHC's own parser to avoid parsing problems caused by
haskell-src-exts.
* Let some whitespace be programmable. The layout of the input influences
the layout choices in the output. This means that the choices between
single-line/multi-line layouts in certain situations are made by the
user, not by an algorithm. This makes the implementation simpler and
leaves some control to the user while still guaranteeing that the
formatted code is stylistically consistent.
* Writing code in such a way so it's easy to modify and maintain.
* That formatting style aims to result in minimal diffs.
* Choose a style compatible with modern dialects of Haskell. As new Haskell
extensions enter broad use, we may change the style to accommodate them.
* Idempotence: formatting already formatted code doesn't change it.
* Be well-tested and robust so that the formatter can be used in large
projects.
* We allow configuration of various parameters, via CLI options or config
files. We encourage any contributions which add further flexibility.


Master sites:

Filesize: 399.909 KB

Version history: (Expand)


CVS history: (Expand)


   2024-05-09 03:32:57 by Masatake Daimon | Files touched by this commit (1137)
Log message:
Recursive revbump after changing the default Haskell compiler
   2024-05-03 11:21:00 by Masatake Daimon | Files touched by this commit (4)
Log message:
devel/fourmolu: Update to 0.15.0.0

Fourmolu 0.15.0.0
    * Add single-deriving-parens configuration option to determine if
      deriving clauses of a single type should be parenthesized (#386)
    * Fix the order in which the configurations are applied (#390)

Upstream changes:
Ormolu 0.7.4.0
    * Don't error when the JavaScriptFFI language pragma is present. Issue
      1087.
    * Improve comment placement in if-then-else blocks. Issue 998.
    * Now command line options for fixity overrides and module re-exports
      overwrite information from .ormolu files. Issue 1030.
    * Respect newlines in data declarations in more cases. Issue 1077 and
      issue 947.
    * The -d / --debug command line option now makes Ormolu print out debug
      information regarding operator fixity inference. Issue 1060.
   2023-11-02 07:37:49 by Masatake Daimon | Files touched by this commit (1141)
Log message:
Revbump all Haskell after updating lang/ghc96
   2023-10-30 18:10:56 by Masatake Daimon | Files touched by this commit (4)
Log message:
devel/fourmolu: Update to 0.14.1.0

The change log is too long to paste here. See
https://hackage.haskell.org/package/fourmolu-0.14.1.0/changelog
   2023-10-09 06:55:01 by Masatake Daimon | Files touched by this commit (988)
Log message:
Bump Haskell packages after updating lang/ghc94
   2023-01-27 15:35:00 by Masatake Daimon | Files touched by this commit (5)
Log message:
devel/fourmolu: Update to 0.10.1.0

The release note is too long to paste here. See
https://hackage.haskell.org/package/fourmolu-0.10.1.0/changelog
   2022-09-07 08:50:53 by Masatake Daimon | Files touched by this commit (149) | Package updated
Log message:
Recursive bump for recently updated Haskell packages
   2022-09-01 11:03:21 by Thomas Klausner | Files touched by this commit (2)
Log message:
fourmolu: fix build with pkgsrc version of hs-aeson