th-desugar v1.5 Release Notes
-
There is now a facility to register a list of
Dec
that internal reification should use when necessary. This avoids the user needing to break up their definition across different top-level splices. SeewithLocalDeclarations
. This has a side effect of changing theQuasi
typeclass constraint on many functions to be the newDsMonad
constraint. Happily, there areDsMonad
instances forQ
andIO
, the two normal inhabitants ofQuasi
.๐ "Match flattening" is implemented! The functions
scExp
andscLetDec
remove any nested pattern matches.More is now exported from
Language.Haskell.TH.Desugar
for ease of use.expand
can now expand closed type families! It still requires that the type to expand contain no type variables.๐ Support for standalone-deriving and default signatures in GHC 7.10. This means that there are now two new constructors for
DDec
.๐ Support for
static
expressions, which are new in GHC 7.10.