packages feed

th-reify-many 0.1.9 → 0.1.10

raw patch · 2 files changed

+6/−2 lines, 2 filesdep ~th-expand-synsPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: th-expand-syns

API changes (from Hackage documentation)

Files

src/Language/Haskell/TH/ReifyMany/Internal.hs view
@@ -100,7 +100,11 @@ -- the given 'TypeclassInstance'. instanceMatches :: TypeclassInstance -> Name -> Bool instanceMatches (TypeclassInstance _ typ _) n' =-    case tailMay $ map (fmap unSigT . headMay . unAppsT) $ unAppsT typ of+    -- We call unSigT to prevent outermost kind signatures from affecting the+    -- results. We also call unSigT a second time on the head of the+    -- application, as older versions of th-expand-syns incorrectly pushed+    -- kind signatures inwards when expanding type synonyms. (See #9.)+    case tailMay $ map (fmap unSigT . headMay . unAppsT . unSigT) $ unAppsT typ of         Nothing -> False         Just xs -> not $ null [() | Just (ConT n) <- xs, n == n'] 
th-reify-many.cabal view
@@ -1,5 +1,5 @@ name:              th-reify-many-version:           0.1.9+version:           0.1.10 synopsis:          Recurseively reify template haskell datatype info  description:       @th-reify-many@ provides functions for recursively reifying top