From 4bfb76535ce7c953b0f595eeeba380991fef2f93 Mon Sep 17 00:00:00 2001 From: Brent Yorgey Date: Wed, 12 Jul 2023 07:44:56 -0500 Subject: [PATCH] update to `fourmolu-0.13` --- .restyled.yaml | 2 +- CONTRIBUTING.md | 4 ++-- fourmolu.yaml | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.restyled.yaml b/.restyled.yaml index 5b29b298cf..51ac9fa3df 100644 --- a/.restyled.yaml +++ b/.restyled.yaml @@ -1,6 +1,6 @@ restylers_version: stable restylers: - fourmolu: - image: 'restyled/restyler-fourmolu:v0.10.1.0' + image: 'restyled/restyler-fourmolu:v0.13.0.0' arguments: [] diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3bb8165b48..8ff29626db 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -216,7 +216,7 @@ them! #### Formatting style -We use [`fourmolu-0.10.1.0`](https://hackage.haskell.org/package/fourmolu) +We use [`fourmolu-0.13.0.0`](https://hackage.haskell.org/package/fourmolu) with a [custom configuration](https://github.com/swarm-game/swarm/blob/main/fourmolu.yaml) for formatting Haskell code. @@ -224,7 +224,7 @@ for formatting Haskell code. To install the formatter, run: ```bash -cabal install fourmolu-0.10.1.0 +cabal install fourmolu-0.13.0.0 ``` If this installation does not work, you may have to set your GHC to a version supported by `fourmolu`: diff --git a/fourmolu.yaml b/fourmolu.yaml index 65c20f61b6..56d9ce84ad 100644 --- a/fourmolu.yaml +++ b/fourmolu.yaml @@ -8,3 +8,6 @@ respectful: true single-constraint-parens: auto haddock-style: single-line newlines-between-decls: 1 +reexports: + - module Text.Megaparsec exports Control.Applicative + - module Options.Applicative exports Control.Applicative