hindent 4.3.7 → 4.3.8
raw patch · 2 files changed
+10/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- hindent.cabal +1/−1
- src/HIndent/Styles/JohanTibell.hs +9/−1
hindent.cabal view
@@ -1,5 +1,5 @@ name: hindent-version: 4.3.7+version: 4.3.8 synopsis: Extensible Haskell pretty printer description: Extensible Haskell pretty printer. Both a library and an executable. .
src/HIndent/Styles/JohanTibell.hs view
@@ -19,7 +19,7 @@ import Data.Maybe import HIndent.Pretty import HIndent.Types-import HIndent.Styles.ChrisDone (infixApp)+import HIndent.Styles.ChrisDone (infixApp,dependOrNewline) import Language.Haskell.Exts.Annotated.Syntax import Prelude hiding (exp)@@ -67,6 +67,14 @@ do col <- fmap (psColumn . snd) (sandbox (write "")) infixApp e a op b (Just col)+stmt (Generator _ p e) =+ do indentSpaces <- getIndentSpaces+ pretty p+ indented indentSpaces+ (dependOrNewline+ (write " <- ")+ e+ pretty) stmt e = prettyNoExt e -- | Handle do specially and also space out guards more.