diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2012-07-31 16:36:30 +0200 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2012-07-31 16:36:30 +0200 |
commit | dfb873f74831ff12a3aab8961d175e35214e15f1 (patch) | |
tree | 45003da18243141aef6bad9984c2739775fd26a6 /src | |
parent | dafe122baea8c4afb30b7faab399cab080abd5af (diff) | |
download | stylish-haskell-dfb873f74831ff12a3aab8961d175e35214e15f1.tar.gz |
Align imports after the start-parenthesis
See #7
Diffstat (limited to 'src')
-rw-r--r-- | src/StylishHaskell/Step/Imports.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StylishHaskell/Step/Imports.hs b/src/StylishHaskell/Step/Imports.hs index 1b50d5c..5b1198f 100644 --- a/src/StylishHaskell/Step/Imports.hs +++ b/src/StylishHaskell/Step/Imports.hs @@ -94,7 +94,7 @@ sortImportSpecs imp = imp {H.importSpecs = fmap sort $ H.importSpecs imp} prettyImport :: Int -> Bool -> Bool -> Int -> H.ImportDecl l -> String prettyImport columns padQualified padName longest imp = intercalate "\n" $ - wrap columns base (length base + 1) $ + wrap columns base (length base + 2) $ (if hiding then ("hiding" :) else id) $ withInit (++ ",") $ withHead ("(" ++) $ |