1
1
mirror of https://github.com/tweag/ormolu.git synced 2024-08-17 00:40:27 +03:00
Commit Graph

716 Commits

Author SHA1 Message Date
Mark Karpov
6cf491c5ca Prioritize fixity overrides and module re-exports from command line 2024-02-01 21:31:13 +01:00
Alexander Esgen
e4bdf8127a Remove decommissioned zw3rk cache 2024-01-29 14:27:50 +01:00
Brandon Chinn
9b3a78f0fd Improve comment placement in if-then-else blocks 2024-01-27 19:36:42 +01:00
dependabot[bot]
1956be3e11 Bump actions/cache from 3 to 4
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-26 14:14:45 +01:00
dependabot[bot]
3a21cd26dd Bump cachix/cachix-action from 13 to 14
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 13 to 14.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v13...v14)

---
updated-dependencies:
- dependency-name: cachix/cachix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-19 11:29:24 +01:00
dependabot[bot]
3d081cbad1 Bump cachix/install-nix-action from 24 to 25
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 24 to 25.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v24...v25)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-19 10:55:48 +01:00
Alexander Esgen
58f378eba9 CI: remove delete-artifact action 2024-01-19 10:38:37 +01:00
Alexander Esgen
74887f0013 Don't error on JavaScriptFFI language pragma 2024-01-10 21:51:15 +01:00
dependabot[bot]
05647fd474 Bump actions/download-artifact from 3 to 4
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-29 01:05:14 +01:00
dependabot[bot]
93c4afe4a1 Bump actions/upload-artifact from 3 to 4
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-28 17:25:45 +01:00
dependabot[bot]
948781fbf0 Bump geekyeggo/delete-artifact from 2 to 4
Bumps [geekyeggo/delete-artifact](https://github.com/geekyeggo/delete-artifact) from 2 to 4.
- [Release notes](https://github.com/geekyeggo/delete-artifact/releases)
- [Changelog](https://github.com/GeekyEggo/delete-artifact/blob/main/CHANGELOG.md)
- [Commits](https://github.com/geekyeggo/delete-artifact/compare/v2...v4)

---
updated-dependencies:
- dependency-name: geekyeggo/delete-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-28 17:25:05 +01:00
dependabot[bot]
b5f94c5ba9 Bump cachix/cachix-action from 12 to 13
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 12 to 13.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v12...v13)

---
updated-dependencies:
- dependency-name: cachix/cachix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-05 11:41:43 +01:00
dependabot[bot]
9f9011bcd8 Bump cachix/install-nix-action from 23 to 24
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 23 to 24.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v23...v24)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-05 11:41:30 +01:00
Cheng Shao
82a46c275e Improve ormolu live wasm size 2023-10-27 20:55:53 +02:00
Mark Karpov
fb5fcb3336
Version bump (0.7.3.0) 2023-10-24 20:52:07 +02:00
Mark Karpov
f7ac93fa9d Add hie.yaml to .gitignore 2023-10-24 20:48:18 +02:00
Mark Karpov
69e57699b4 Correct dependency bounds
Inspired by https://github.com/mrkkrp/megaparsec/pull/548, which see.
2023-10-24 15:50:08 +02:00
Mark Karpov
0e33e55499 Remove Setup.hs
It is trivial and makes no difference.
2023-10-22 12:02:50 +02:00
Alexander Esgen
fc0221cb04 ghc-lib-parser 9.8 2023-10-19 15:43:23 +02:00
Alexander Esgen
39db791bf3 Remove usage of head/tail (deprecated in GHC 9.8)
Main occurrence is the operator tree code. This commit changes

    OpBranches [OpTree ty op] [op]

to

    OpBranches (NonEmpty (OpTree ty op)) [op]

such that the calls to `head`/`tail`/`last` can then be replaced by pattern
matching on `:|` or by using the total replacements from `Data.List.NonEmpty`.
Still, we need to call `NE.fromList` twice. `OverloadedLists` is only used in
the tests; as it is otherwise too easy to accidentally write `[] :: NonEmpty a`
without any warning.

Alternatives to this commit are:

 - Just do the absolute minimal changes required to silence the warnings (ie
   basically inline `head`/`tail`).

 - Rewrite the operator tree code even further (maybe using more precise types)
   such that the `NE.fromList` are not necessary anymore.
2023-10-19 15:43:23 +02:00
Mark Karpov
0de3717538
Version bump (0.7.2.0) 2023-09-06 17:31:21 +02:00
Alexander Esgen
122bcd41bb Fix AST diffing for empty Haddock comments in data decls 2023-09-06 14:28:13 +02:00
dependabot[bot]
c59910bc95 Bump cachix/install-nix-action from 22 to 23
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 22 to 23.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v22...v23)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 12:56:54 +02:00
dependabot[bot]
8eec6e9658 Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 11:22:21 +02:00
Alexander Esgen
367c6b0107 Fix interaction of operators starting with # and UnboxedSums 2023-09-04 17:15:10 +02:00
Alexander Esgen
bab66ce5a4 Use WASM GHC 9.8 2023-09-04 11:44:12 +02:00
Alexander Esgen
62e2cf1e32 Move changelog entry for #1048 to correct section 2023-08-23 21:54:06 +02:00
Alexander Esgen
2bb1816276 Remove note about Haddock parsing being more strict
This has not been true since GHC 9.0:

 - https://gitlab.haskell.org/ghc/ghc/-/issues/23379
 - https://gitlab.haskell.org/ghc/ghc/-/merge_requests/11127
2023-08-23 21:54:06 +02:00
Alexander Esgen
f94567aa2d Put "this" PackageImports at the end 2023-08-18 20:22:49 +02:00
Alexander Esgen
8c85629fd9 Update GHC and Cabal deps 2023-08-18 18:14:09 +02:00
Brandon Chinn
7afa9156a6 Prefix warning + comment debug logs 2023-08-01 11:32:18 +02:00
Brandon Chinn
210d8f96f7 Show configuration with --debug 2023-08-01 11:32:18 +02:00
Brandon Chinn
a058c0f49a Only show warnings if they exist 2023-08-01 11:32:18 +02:00
Alexander Esgen
02ceaa2928 Preserve necessary braces for final function arguments 2023-08-01 11:09:11 +02:00
Brandon Chinn
827b201b1e Use stack snapshot with GHC 9.6 2023-08-01 11:06:52 +02:00
dependabot[bot]
bd0d80d287 Bump cachix/install-nix-action from 21 to 22
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 21 to 22.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v21...v22)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-01 10:40:19 +02:00
Alexander Esgen
e90a78bf03 Bump ghc-wasm-meta 2023-08-01 09:38:06 +02:00
Mark Karpov
cb93ebded6
Version bump (0.7.1.0) 2023-06-07 21:56:23 +02:00
Mark Karpov
4e0fef3f50 Erase lines affected by CPP before attempting to parse pragmas and imports 2023-06-07 12:01:38 +02:00
Brandon Chinn
0fbbb11ed9 Break out withIORefCache helper 2023-06-06 16:42:15 +02:00
Mark Karpov
9fabd8cfe1 Support explicit package names in module re-exports in .ormolu
Support explicit mention of target package name in module re-exports. Even
if the exported package is not specified as a direct dependency of the
component being formatted it will be taken into account correctly.
2023-06-05 21:36:24 +02:00
dependabot[bot]
fe98934c05 Bump cachix/install-nix-action from 20 to 21
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 20 to 21.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v20...v21)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-30 23:02:53 +02:00
Mark Karpov
a9bb00758e Instruct Ormolu about a common hspec re-export 2023-05-24 23:53:17 +02:00
Mark Karpov
fbfdb67011 Allow optparse-applicative-0.18 2023-05-24 21:24:37 +02:00
Brandon Chinn
01cb1e84e2 Pretty print exception in displayException 2023-05-23 09:41:34 +02:00
Brandon Chinn
17ae060c19 Use defaultDependencies when cabal file does not mention file 2023-05-22 10:37:17 +02:00
Alexander Esgen
d73064a152 Ormolu Live: exclude certain packages with conflicting modules 2023-05-22 09:01:59 +02:00
Mark Karpov
49eb083d2b Readme: point to the new home for Ormolu GitHub action 2023-05-18 15:52:00 +02:00
Mark Karpov
bc4a00b4a1
Version bump (0.7.0.0) 2023-05-17 21:59:53 +02:00
Mark Karpov
83509ebd1a Locate .ormolu file independently of .cabal files 2023-05-17 21:22:01 +02:00