psibi / dhall-mode

44 stars 16 forks source link

Auto-reformatting nukes comments #22

Open fosskers opened 5 years ago

fosskers commented 5 years ago

I'm loving dhall-mode so far, thank you for it. The auto-reformatting is very convenient, but I've noticed that it's a bit over-zealous when it comes to comments. Comments at the very top of the file seem to stick around, but formatting will remove any others. This makes it hard to annotate type fields, etc.

Is there any way around this? Thank you.

psibi commented 5 years ago

Related issue: https://github.com/dhall-lang/dhall-haskell/issues/145

fosskers commented 5 years ago

Ah, thanks @psibi !