stylish-haskell 0.6.0.0 → 0.6.1.0
raw patch · 3 files changed
+10/−5 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG +3/−0
- lib/Language/Haskell/Stylish/Editor.hs +6/−4
- stylish-haskell.cabal +1/−1
CHANGELOG view
@@ -1,5 +1,8 @@ # CHANGELOG +- 0.6.1.0+ * Fix line patching issue in Editor+ - 0.6.0.0 * Add a `simple_align` step * Move `records` step into `simple_align`
lib/Language/Haskell/Stylish/Editor.hs view
@@ -19,7 +19,8 @@ ---------------------------------------------------------------------------------import Data.List (intercalate)+import Data.List (intercalate, sortBy)+import Data.Ord (comparing) --------------------------------------------------------------------------------@@ -41,14 +42,15 @@ -------------------------------------------------------------------------------- applyChanges :: [Change a] -> [a] -> [a]-applyChanges changes+applyChanges changes0 | overlapping blocks = error $ "Language.Haskell.Stylish.Editor.applyChanges: " ++ "refusing to make overlapping changes on lines " ++ intercalate ", " (map printBlock blocks)- | otherwise = go 1 changes+ | otherwise = go 1 changes1 where- blocks = map changeBlock changes+ changes1 = sortBy (comparing (blockStart . changeBlock)) changes0+ blocks = map changeBlock changes1 printBlock b = show (blockStart b) ++ "-" ++ show (blockEnd b)
stylish-haskell.cabal view
@@ -1,5 +1,5 @@ Name: stylish-haskell-Version: 0.6.0.0+Version: 0.6.1.0 Synopsis: Haskell code prettifier Homepage: https://github.com/jaspervdj/stylish-haskell License: BSD3