haskell-src-exts-util 0.2.3 → 0.2.4
raw patch · 3 files changed
+15/−13 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- changelog.md +2/−0
- haskell-src-exts-util.cabal +11/−12
- src/Language/Haskell/Exts/Bracket.hs +2/−1
changelog.md view
@@ -1,3 +1,5 @@+# 0.2.4+ - Neil fixed the spotting of brackets inside a lambda. # 0.2.3 - `isAtom` is now more complete, thanks to Neil M. # 0.2.2
haskell-src-exts-util.cabal view
@@ -1,11 +1,11 @@--- This file has been generated from package.yaml by hpack version 0.20.0.+-- This file has been generated from package.yaml by hpack version 0.28.2. -- -- see: https://github.com/sol/hpack ----- hash: a640f01f9f66951b30f870fb4438ec3626ec8e81112d72713c5bfe3f2f6ae5e9+-- hash: df45b283632522ce37bd805c415abcf6f3860f9532488e9ca9e3e5975d56817f name: haskell-src-exts-util-version: 0.2.3+version: 0.2.4 synopsis: Helper functions for working with haskell-src-exts trees description: Helper functions for working with haskell-src-exts trees. category: language@@ -16,10 +16,9 @@ copyright: All Rights Reserved license: BSD3 license-file: LICENSE-tested-with: GHC==8.4.1, GHC==8.2.1, GHC==8.0.2+tested-with: GHC==8.6.2, GHC==8.4.1, GHC==8.2.1, GHC==8.0.2 build-type: Simple cabal-version: >= 1.10- extra-source-files: changelog.md README.md@@ -29,6 +28,13 @@ location: https://github.com/pepeiborra/haskell-src-exts-util library+ exposed-modules:+ Language.Haskell.Exts.Util+ other-modules:+ Language.Haskell.Exts.Bracket+ Language.Haskell.Exts.FreeVars+ Language.Haskell.Exts.Util.Internal+ Paths_haskell_src_exts_util hs-source-dirs: src build-depends:@@ -39,11 +45,4 @@ , semigroups , transformers , uniplate- exposed-modules:- Language.Haskell.Exts.Util- other-modules:- Language.Haskell.Exts.Bracket- Language.Haskell.Exts.FreeVars- Language.Haskell.Exts.Util.Internal- Paths_haskell_src_exts_util default-language: Haskell2010
src/Language/Haskell/Exts/Bracket.hs view
@@ -93,6 +93,7 @@ | ListComp{} <- parent = False | List{} <- parent = False | Tuple{} <- parent = False+ | TupleSection{} <- parent = False | If{} <- parent, isAnyApp child = False | App{} <- parent, i == 0, App{} <- child = False | ExpTypeSig{} <- parent, i == 0, isApp child = False@@ -100,7 +101,7 @@ | RecConstr{} <- parent = False | RecUpdate{} <- parent, i /= 0 = False | Case{} <- parent, i /= 0 || isAnyApp child = False- | Lambda{} <- parent, i == length (universeBi parent :: [Pat l]) - 1 = False -- watch out for PViewPat+ | Lambda{} <- parent = False -- might be either the RHS of a PViewPat, or the lambda body (neither needs brackets) | Do{} <- parent = False | otherwise = True