Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format Brittany's source code with Brittany #238

Closed
tfausak opened this issue Jun 18, 2019 · 3 comments · Fixed by #359
Closed

Format Brittany's source code with Brittany #238

tfausak opened this issue Jun 18, 2019 · 3 comments · Fixed by #359

Comments

@tfausak
Copy link
Collaborator

tfausak commented Jun 18, 2019

It would be nice if Brittany could be "self hosting" in that it could format its own source. Doing so would give a lot of confidence that things aren't broken, and also stand as a good example of what Brittany's output looks like.

@eborden
Copy link
Collaborator

eborden commented Jun 19, 2019

I'm curious if using https://restyled.io/ would be an option once the initial formatting is done. This all depends on whether "self hosting" means formatting with HEAD or the most recent release.

@tfausak
Copy link
Collaborator Author

tfausak commented Jun 19, 2019

That would probably be fine, especially with layout stability (#235). In fact it might be nice — we could recommend that other projects do that too, and we'd be eating our own dog food.

@tfausak
Copy link
Collaborator Author

tfausak commented Dec 11, 2020

I'm not sure this is possible. Brittany doesn't handle CPP, and Brittany's own source code has plenty of that.

$ rg --glob '*.hs' '^#' | wc -l
200

tfausak added a commit to tfausak/brittany that referenced this issue Nov 29, 2021
tfausak added a commit that referenced this issue Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants