packages feed

hs-inspector 0.2.0.0 → 0.2.1.0

raw patch · 2 files changed

+7/−6 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

hs-inspector.cabal view
@@ -2,7 +2,7 @@ --  http://haskell.org/cabal/users-guide/  name:                hs-inspector-version:             0.2.0.0+version:             0.2.1.0 license:             MIT license-file:        LICENSE author:              Franco Leonardo Bulgarelli@@ -10,6 +10,7 @@ category:            Language build-type:          Simple cabal-version:       >=1.10+synopsis:            Haskell source code analyzer description:         Simple package for detecting usage of certain Haskell features on a module source code  library
src/Language/Haskell/Inspector.hs view
@@ -47,12 +47,12 @@         f (E (HsVar    name)) = isTarget name         f _ = False -        isTarget (Qual  _ (HsSymbol target)) = True-        isTarget (Qual  _ (HsIdent  target)) = True-        isTarget (UnQual  (HsSymbol target)) = True-        isTarget (UnQual  (HsIdent  target)) = True-        isTarget _                           = False+        isTarget (Qual  _ n) = isTarget' n+        isTarget (UnQual  n) = isTarget' n+        isTarget _           = False +        isTarget' (HsSymbol t) = t == target+        isTarget' (HsIdent  t) = t == target  -- | Inspection that tells whether a binding uses lists comprehensions -- in its definition