Use with the Atom editor - possible? #62
Labels
No Label
blocked: dependency
blocked: info-needed
bug
duplicate
enhancement
fixed in HEAD
help wanted
hs:arrows
hs:brackets
hs:classes
hs:comments
hs:do-notation
hs:guards
hs:lists
hs:operators
hs:patterns
hs:records
hs:types
invalid
language extension support
layouting
needs confirmation
priority: high
priority: low
question
revisit before next release
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: hexagoxel/brittany#62
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
I'm currently using hindent, which integrates very well with Atom (as does stylish-haskell). Is there a similar story for brittany? Anybody here using it with Atom to prettify on save?
I think I have mentioned this to you in chat already, but for completeness/others interested:
I don't use Atom and I don't plan to spend time on trying to integrate
brittany
into various editors. However,brittany
is included in haskell-ide-engine so if your editor has some plugin to work with the language server protocol that might be a promising route to get better integration.That said, if anyone has a setup for integrating
brittany
properly into Atom, please do tell. I would put something in the README.@lspitzner I don't remember ever having chatted with you, and I only just discovered Brittany the day I posted the question.
I do though fully understand your position, and was simply hoping that one or more users out there maybe had some experience getting Atom and Brittany to function in perfect harmony. :o)
@ThomasLocke And i share that hope. i have left this ticket open so other atom users can connect. I merely felt obliged to give some kind of response, even if it is "i cannot help currently with this".
fyi https://github.com/haskell/haskell-ide-engine/pull/311
It should already be supported the same way
hindent
is in the ide-haskell package. You can read a bit in https://github.com/atom-haskell/ide-haskell/issues/20#issuecomment-242122031, but basically just plug in the brittany binary in place of stylish-haskell.I'll look into support for https://github.com/Glavin001/atom-beautify which doesn't seem like that much work :)
You can track the progress of atom-beautify PR in https://github.com/Glavin001/atom-beautify/pull/1911, which adds support for brittany and hindent.
@Tehnix I noticed the referenced PR is merged. Can you provide specific setup instructions? Or is a plain reference to atom-beautify sufficient? PR to readme welcome!
@lspitzner I completely forgot that PR because it lingered for so long. Although it's not the default formatter (IIRC), a reference to atom-beautify and mention that you need to specifically set the formatter for Haskell, should suffice.