Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Update .stylish-haskell #680
With one file formatted as an example.
AFAICS, this is only configuration where indentation/alignment won't change globally if you add/remove long module name or qualified imports.
One option would be to have short lists right after the module name, but there isn't such configuration option in
@alpmestan looking across
I'm not the huge fan of the style proposed, but it's one of diff friendly ones.
Another variant is to separate explicit import lists and qualified imports into two groups:
import Data.Maybe (mapMaybe) import Data.List (foldl') import GHC.Generics (Generic) -- not `as` isn’t indented import qualified Data.ByteString as BS import qualified Data.Text as T
import Data.Maybe (mapMaybe, fromJust, isNothing, catMaybe) import Data.List (foldl') import GHC.Generics (Generic) import qualified Data.ByteString as BS import qualified Data.Text as T
(third isn’t supported by stylish-haskell, but it’s an easy addition)