stylish-haskell icon indicating copy to clipboard operation
stylish-haskell copied to clipboard

Option for multiline constructors in imports

Open luxocrates opened this issue 1 year ago • 0 comments

long_list_align: multiline is great for neatly arranging my imports, but if my imports have long constructor lists, those lists will blow past the column limit, which seems like a bug to me (v0.14.5.0)

Can I put in a request to allow constructors to be multiline too?

Right now this I'm getting the unwieldy:

import Asm.Types.AsmFailable
  ( AsmErrorDetails (AddressError, CsBalanceRedefError, LocalDefButNoParentError, RedefLabelError, RedefSymbolError, SyntaxError)
  , AsmErrorLoc (CsPos, CsRange, Nowhere)
  , AsmFailable
  )

...but what I think would be most helpful is:

import Asm.Types.AsmFailable
  ( AsmErrorDetails
    ( AddressError
    , CsBalanceRedefError
    , LocalDefButNoParentError
    , RedefLabelError
    , RedefSymbolError
    , SyntaxError
    )
  , AsmErrorLoc (CsPos, CsRange, Nowhere)
  , AsmFailable
  )

luxocrates avatar Jan 07 '24 19:01 luxocrates