From 28956560ae188bc074376cc50ff583abfe9bfdae Mon Sep 17 00:00:00 2001 From: George Thomas Date: Mon, 25 Nov 2024 15:25:01 +0000 Subject: [PATCH] Use simpler approach to specifying operator fixities for Fourmolu Signed-off-by: George Thomas --- fourmolu.yaml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/fourmolu.yaml b/fourmolu.yaml index dae70ebe1..c83b2a03f 100644 --- a/fourmolu.yaml +++ b/fourmolu.yaml @@ -8,15 +8,11 @@ haddock-style: single-line newlines-between-decls: 1 single-constraint-parens: auto +# Foreword might not actually re-export _all_ operators from these modules, +# but this is a lot nicer than explicitly listing all of the ones that it does. +# For some reason they're not picked up with `module Foreword exports Protolude`. reexports: - - module Foreword exports Protolude -fixities: - # The `optics` composition operator. - # We have no way of telling Fourmolu that Foreword hides the same-named operator from Protolude. - - infixl 9 % - # It's not clear why Fourmolu doesn't recognise that we get these from Protolude... - - infixl 1 & - - infixr 6 <> - - infixr 0 $ - - infixl 4 <$> - - infixl 4 <*> + - module Foreword exports Prelude + - module Foreword exports Control.Applicative + - module Foreword exports Data.Function + - module Foreword exports Data.Monoid