lspitzner / brittany

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

Q. Does brittany write to STDOUT by default all the time? #134

Closed ifyouseewendy closed 6 years ago

ifyouseewendy commented 6 years ago

Hi, I'm trying to fix the brittany support for ale (https://github.com/w0rp/ale/issues/1424). TLDR; We have a guess that brittany might write to file in place at sometime and change to STDOUT later.

By pulling and playing around locally, I've found that it writes to display for 0.9.0.0 and 0.8.0.3. Due to a conflict with my local base, I could not install 0.8.0.2 to test it out. Would someone help me confirm this please? Does brittany output to STDOUT all the time, or not? If there was a change, what is the version.

Thanks!

lspitzner commented 6 years ago

yes. When not providing output path (older versions) or --write-mode inplace, the default behaviour was always to use stdout. I don't think there is a single commit where this was not the case.

ifyouseewendy commented 6 years ago

Cool, good to know that. Thanks for the quick reply!