th-abstraction v0.4.0.0 Release Notes
Release Date: 2020-09-29 // about 4 years ago-
- Adapt to the
TyVarBndr
data type gaining a newflag
type parameter (intemplate-haskell-2.17.0.0
) to represent its specificity:- Introduce a new
Language.Haskell.TH.Datatype.TyVarBndr
module that definesTyVarBndr_
, a backwards-compatible type synonym forTyVarBndr
, as well as backportingTyVarBndrSpec
,TyVarBndrUnit
, andSpecificity
. This module also defines other useful functions for constructing and manipulatingTyVarBndr
s. - The types in
Language.Haskell.TH.Datatype
now useTyVarBndr_
,TyVarBndrUnit
, andTyVarBndrSpec
where appropriate. Technically, this is not a breaking change, since all three are simple type synonyms aroundTyVarBndr
, but it is likely that you will need to update yourth-abstraction
-using code anyway if it involves aTyVarBndr
-consuming function.
- Introduce a new
- Adapt to the
Previous changes from v0.3.2.0
-
- ๐ Support substituting into and extracting free variables from
ForallVisT
s ontemplate-haskell-2.16.0.0
(GHC 8.10) or later. - ๐ Fix a bug in which
freeVariables
could report duplicate kind variables when they occur in the kinds of the type variable binders in aForallT
. - ๐ Fix a bug in which
resolveInfixT
would not resolveUInfixT
s occurring in the kinds of type variable binders in aForallT
. - ๐ Fix a bug in which the
TypeSubstitution ConstructorInfo
instance would not detect free kind variables in theconstructorVars
.
- ๐ Support substituting into and extracting free variables from