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

Add an option to vertically format imports

Open jonaprieto opened this issue 7 years ago • 1 comments

I was wondering if stylish haskell has currrently some way to have the imports with the next layout:


import OnlineATPs.Defaults    ( getDefaults )
import OnlineATPs.Options
  ( Options
    ( optATP
    , optHelp
    , optATPList
    , optTime
    , optVersion
    , optInputFile
    )
  , processOptions
  , printUsage
  )

With the settings by default I have this output:

import           OnlineATPs.Defaults (getDefaults)
import           OnlineATPs.Options  (Options (optATP, optATPList, optHelp, optInputFile, optTime, optVersion),
                                      printUsage, processOptions)

jonaprieto avatar Aug 21 '16 03:08 jonaprieto

Btw, you already can get multiline imports: https://github.com/jaspervdj/stylish-haskell/blob/master/data/stylish-haskell.yaml#L67-L88.

neongreen avatar Apr 16 '17 00:04 neongreen