Closed fisx closed 3 years ago
I'm a bit late, but:
Many cabal and stack projects use
default-extensions
to enable GHC language extensions in all source files. With the--cabal-default-extensions
flag, Ormolu will take them into consideration during formatting.
https://github.com/tweag/ormolu#account-for-cabal-files https://github.com/tweag/ormolu/pull/759 https://github.com/vyorkin/ormolu.el/pull/14
hehe, i completely forgot about this issue, but --cabal-default-extensions
looks like my answer. i'll try that out soon, thanks!
Issue description (and possibly discussion) here: https://github.com/tweag/ormolu/issues/517, but perhaps there is some simple work-around for this in the emacs mode.
This is currently my work-around: