lspitzner / brittany

haskell source code formatter
GNU Affero General Public License v3.0
690 stars 72 forks source link

"Loaded package environment from..." pollutes the output #183

Closed TomMD closed 6 years ago

TomMD commented 6 years ago

Running brittany in a directory with .ghc.env... files yields ugly output such as:

Loaded package environment from /home/.../.ghc.environment.x86_64-linux-8.4.3

Which breaks lots of automated uses of brittany.

I see this is a feature in GHC and whichever library is using the GHC API (guessing here) should probably have an option for turning down the verbosity.

alanz commented 6 years ago

Are you using the version that uses ghc-exactprint-0.5.8.0? It has a workaround for that.

TomMD commented 6 years ago

Ah, indeed. The Brittany package on Hackage just hasn't been updated yet.