hlint 1.8.1 → 1.8.2
raw patch · 4 files changed
+4/−2 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- data/Default.hs +1/−0
- hlint.cabal +1/−1
- src/HSE/Bracket.hs +1/−1
- src/Hint/Bracket.hs +1/−0
data/Default.hs view
@@ -189,6 +189,7 @@ warn = (case x of Just a -> a; Nothing -> y) ==> fromMaybe y x error = (if isNothing x then y else fromJust x) ==> fromMaybe y x error = (if isJust x then fromJust x else y) ==> fromMaybe y x+error = isJust x && (fromJust x == y) ==> x == Just y -- INFIX
hlint.cabal view
@@ -1,7 +1,7 @@ cabal-version: >= 1.6 build-type: Simple name: hlint-version: 1.8.1+version: 1.8.2 -- license is GPL v2 only license: GPL license-file: LICENSE
src/HSE/Bracket.hs view
@@ -49,7 +49,7 @@ | Tuple{} <- parent = False | If{} <- parent, isAnyApp child = False | App{} <- parent, i == 0, App{} <- child = False- | ExpTypeSig{} <- parent, i == 0 = False+ | ExpTypeSig{} <- parent, i == 0, not $ isLambda child = False | Paren{} <- parent = False | isDotApp parent, isDotApp child, i == 1 = False | RecConstr{} <- parent = False
src/Hint/Bracket.hs view
@@ -44,6 +44,7 @@ yes = (b $ c d) ++ e -- b (c d) ++ e yes = (a b $ c d) ++ e -- a b (c d) ++ e no = (f . g $ a) ++ e+no = quickCheck ((\h -> cySucc h == succ h) :: Hygiene -> Bool) </TEST> -}