Mark Karpov
c11c4de1ba
Implement support for fractional precedence
2024-09-17 21:56:53 +02:00
Alexander Esgen
7e000cb1f6
Document parsability requirement for region formatting
2024-02-21 12:34:17 +01:00
Brandon Chinn
6e5c77ae68
Add fixity troubleshooting in README
2024-02-15 17:13:41 +01: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
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
Mark Karpov
49eb083d2b
Readme: point to the new home for Ormolu GitHub action
2023-05-18 15:52:00 +02:00
Mark Karpov
83509ebd1a
Locate .ormolu file independently of .cabal files
2023-05-17 21:22:01 +02:00
Mark Karpov
8f2bc36705
Allow to specify module re-exports in .ormolu files
...
It turns out that gaining knowledge of all module re-exports in the
ecosystem is tricky because the Hoogle database does not contain this
information, so one would need to download all 14+k packages from Hackage
and parse their source code. We've decided that perhaps hardcoding some
common re-exports and otherwise giving the users a way to make Ormolu aware
of arbitrary important re-exports is a satisfactory solution for now.
Co-authored-by: amesgen <alexander.esgen@tweag.io>
2023-05-15 20:43:41 +02:00
Mark Karpov
c81320d8a1
Expose a more complete API from the Ormolu module
...
Co-authored-by: amesgen <alexander.esgen@tweag.io>
2023-01-25 20:27:25 +01:00
Alexander Esgen
af02809ebe
Add GH Actions CI
2023-01-23 18:10:02 +01:00
Alexander Esgen
4b0bcc2945
Flakeify
...
also drop Ormolu Live temporarily
2023-01-23 18:10:02 +01:00
Mark Karpov
4b5ba705d7
Introduce operator fixity configuration
...
Co-authored-by: amesgen <alexander.esgen@tweag.io>
2022-05-12 13:50:42 +02:00
Georgi Lyubenov
1ffd51ab3e
Update the IOHK Hydra setup instructions
2022-05-09 09:33:07 +02:00
Farseen
3f06ef0dc9
Mention actively maintained forks in the readme
2022-01-10 09:32:37 +01:00
amesgen
e003e11a56
Add commit hash alias for Ormolu Live
2021-11-02 14:14:41 +01:00
amesgen
009ea19a9b
Mention HLS in README
2021-10-29 15:25:11 +02:00
amesgen
1eec90541c
Add Ormolu Live
2021-10-27 00:17:03 +02:00
Mark Karpov
71cf4fdc85
Update the table of exit codes
...
Now the check mode works for input from stdin.
2021-10-12 15:12:28 +02:00
Robert Vollmert
dc04bd7cbb
Point at release page for installation instructions
2021-10-12 14:52:08 +02:00
amesgen
1187a81f21
Mention core.autocrlf != false
pitfall
2021-09-24 17:51:21 +02:00
amesgen
4fb3b3b373
Add stack.yaml
2021-09-15 14:26:56 +02:00
Mark Karpov
a1773e1ccb
Update the description of magic comments in the readme
...
The logic has changed a little.
2021-09-14 11:06:58 +02:00
Mark Karpov
db5b92a932
Update the building instructions
2021-09-14 11:05:04 +02:00
Mark Karpov
427aa7191c
Mention adding IOHK Hydra binary cache before building
2021-09-13 12:17:02 +02:00
Mark Karpov
5e29428ccf
Update the building instructions in the readme
2021-08-16 21:12:01 +02:00
Mark Karpov
80638316eb
Clarify the meaning of --stdin-input-file
in the readme
2021-08-13 15:34:09 +02:00
Mark Karpov
6a190d5c9e
Fix a link in the readme
2021-08-13 15:31:35 +02:00
amesgen
59fced3058
Add option to respect default-extensions from .cabal files
2021-08-12 18:22:21 +02:00
Mark Karpov
77debd145f
Mention the git ls-files trick in the readme
2021-04-12 22:27:33 +02:00
Mark Karpov
9cad22a2fe
Mention the ormolu-action in the readme
2020-11-15 22:14:25 +01:00
Mark Karpov
8dc40b557d
Misc edits in the readme
2020-11-14 17:07:01 +01:00
Mark Karpov
4d85d706ee
Add table of contents to the readme, rearrange sections
2020-11-14 16:57:51 +01:00
Mark Karpov
90a894e19f
Add explanations for the exit codes to the readme
2020-11-14 16:51:34 +01:00
tomjaguarpaw
6ced0eba7b
Clarify enabling/disabling
2020-09-17 12:52:38 +02:00
tomjaguarpaw
139df241fe
Fix grammar
2020-09-17 12:05:25 +02:00
Jens Petersen
6a053acb10
readme: fix typo of "accommodate"
...
[skip ci]
2020-09-04 10:26:20 +02:00
Mark Karpov
913a927f39
Tweak the readme a bit, mention Arch Linux
2020-06-29 17:36:24 +02:00
Mark Karpov
c97ba55762
Change comment style in the readme
...
[skip ci]
2020-06-23 11:56:43 +02:00
Mark Karpov
03e6c70a78
Mention ‘stack install’ in the readme
2020-06-21 14:54:59 +02:00
Mark Karpov
c261356bc4
Recommend lts-16.0 in the readme
2020-06-21 10:45:18 +02:00
Mark Karpov
9a3d872e33
Mention how to format a tree recursively
...
[skip ci]
2020-04-26 16:50:49 +02:00
Facundo Domínguez
5bffeffa05
Update design notes for CPP.
2020-04-24 23:08:37 +02:00
Mark Karpov
53f582a575
Implement experimental support for CPP
2020-04-22 14:47:09 +02:00
Mark Karpov
dde7560291
Allow disabling of Ormolu with special comments
...
Ormolu can be turned on and off via the special comments:
{- ORMOLU_DISABLE -}
and
{- ORMOLU_ENABLE -}
This allows us to disable formatting selectively for code between these
markers or disable it for the entire file. To achieve the latter, just put
{- ORMOLU_DISABLE -} at the very top. Note that the source code should still
be parseable even without the “excluded” part. Because of that the magic
comments cannot be placed arbitrary, but should rather enclose independent
top-level definitions.
2020-04-21 12:44:39 +02:00
Clément Hurlin
57d0d11b37
Mention a second vim integration: neoformat
2020-03-26 23:36:51 +01:00
fisx
55d8b7f8c4
Add link to vim integration to README
2020-02-18 12:59:57 +01:00
Mark Karpov
5f5a70655a
Use Buildkite
...
Replace CircleCI with Buildkite.
2020-02-10 20:17:49 +01:00
mrkkrp
f83f6fd1da
Update links in the readme to make them work outside of GitHub
...
Relative links work fine on GitHub, but not on e.g. Hackage.
2019-10-22 21:58:57 +02:00
Yuriy Syrovetskiy
73b03b1b7f
Add VS Code plugin link
2019-10-19 12:06:01 +02:00
mrkkrp
096c8d7f63
Update the readme
...
Also adds the note to ‘DESIGN.md’ stating that it's no longer being updated.
2019-10-04 11:44:21 +02:00