tweag / ormolu

A formatter for Haskell source code
https://ormolu-live.tweag.io
Other
954 stars 83 forks source link

Consider supporting fixity namespacing #1113

Open amesgen opened 4 months ago

amesgen commented 4 months ago

https://github.com/tweag/ormolu/blob/e3d67c8ace831ef5e7c3c79c0feaae99cf15214d/src/Ormolu/Fixity/Parser.hs#L48-L57 https://github.com/tweag/ormolu/pull/1103#discussion_r1608537300

mrkkrp commented 3 months ago

It looks like we should wait till fixity declarations without type or data keywords start to pertain exclusively to values. If my understanding is correct, then right now fixity declarations without type or data keyword still pertain to both values and types, so we would have to fallback to the current "common namespace" treatment even if we introduce the distinction.