Closed pbrisbin closed 6 years ago
Oh, I'm sorry! I don't know for sure if this is caused by brittany, stylish-haskell, or the fact that I'm using both in the same project. I'm going to close and may re-open if I can suss that out.
EDIT: This is indeed Brittany. Using only stylish-haskell, I get:
import Prelude as X hiding
(head, init, last, maximum, minimum, pred, read, readFile, succ, tail)
And I get a correct vertical alignment when I go past 80 columns.
@pbrisbin this fix produces the very basic
-- brittany { lconfig_indentPolicy: IndentPolicyLeft, lconfig_indentAmount: 4 }
import Prelude as X
hiding
( head
, init
, last
, maximum
, minimum
, pred
, read
, readFile
, succ
, tail
, undefined
)
I can change this to one of your proposed versions. I think I'd rather go with the second one, as the reader might overlook the "hiding" in the first version? What is your preference?
Thanks for such a quick turn around! It's totally up to you if you want to change things further, but if you're asking for my own total ideal, it would be this:
(indent 4, columns 80)
import {module} (as {alias}) hiding
( ...
)
But, if "import {module} (as {alias})" cross 80-columns, then
import qualified {super duper long module name} as {also super duper long alias name}
hiding
( ...
)
Or maybe this?
import qualified {super duper long module name}
as {also super duper long alias name}
hiding
( ...
)
With
brittany-0.11.0.0
, I'm getting the following for a longhiding
import, is it intentional?It looks quite weird to me, I would've expected this:
Or maybe this:
I'm using this configuration: