Skip to content

Commit

Permalink
style: Use simpler approach to specifying operator fixities for Fourmolu
Browse files Browse the repository at this point in the history
  • Loading branch information
georgefst committed Nov 27, 2024
1 parent c7651e9 commit 2a0c3ea
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions fourmolu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2a0c3ea

Please sign in to comment.