packages feed

th-expand-syns 0.2.0.0 → 0.3.0.0

raw patch · 2 files changed

+13/−2 lines, 2 filesdep ~template-haskellPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: template-haskell

API changes (from Hackage documentation)

- Language.Haskell.TH.ExpandSyns: class SubstTypeVariable a
- Language.Haskell.TH.ExpandSyns: subst :: SubstTypeVariable a => (Name, Type) -> a -> a
+ Language.Haskell.TH.ExpandSyns: substInCon :: (Name, Type) -> Type -> Type
+ Language.Haskell.TH.ExpandSyns: substInType :: (Name, Type) -> Type -> Type

Files

Language/Haskell/TH/ExpandSyns.hs view
@@ -4,7 +4,8 @@ module Language.Haskell.TH.ExpandSyns(-- * Expand synonyms                                       expandSyns                                       -- * Misc utilities-                                     ,SubstTypeVariable(..)+                                     ,substInType+                                     ,substInCon                                      ,evades,evade) where      import Language.Haskell.TH hiding(cxt)@@ -269,3 +270,13 @@                   freshTyVarBndrs                   (fmap (subst vt . doSubsts) cxt )                    (     (subst vt . doSubsts) body)++++-- | Capture-free substitution+substInType :: (Name,Type) -> Type -> Type+substInType = subst++-- | Capture-free substitution+substInCon :: (Name,Type) -> Type -> Type+substInCon = subst
th-expand-syns.cabal view
@@ -1,5 +1,5 @@ name:                th-expand-syns-version:             0.2.0.0+version:             0.3.0.0 synopsis:            Expands type synonyms in Template Haskell ASTs description:         Expands type synonyms in Template Haskell ASTs category:            Template Haskell