Changelog for lift-data-0.1.0
0.2 [2020.09.30]
-
genericLiftTyped
andgenericLiftTypedWithPkg
now return aCode
instead of aTExp
to reflect the type ofliftTyped
changing intemplate-haskell-2.17.0.0
. New functionsgenericLiftTypedTExp
andgenericLiftTypedTExpWithPkg
have been added for those who wish to returnTExp
specifically. In addition, the functionsgenericLiftTypedCompat
andgenericLiftTypedCompatWithPkg
have been introduced which return aCode
ontemplate-haskell-2.17.0.0
or later, but aTExp
on older versions oftemplate-haskell
. These functions are most useful for implementingliftTyped
in aLift
instance in a backwards-compatible way.The
th-compat
library is used to backport theCode
data type back to versions oftemplate-haskell
that do not define it. -
The functions in
Language.Haskell.TH.Lift.Generics
are now generalized to work over anyQuote
instance instead of hardcodingQ
. Again, theth-compat
library is used to backportQuote
to old versions oftemplate-haskell
that do not define it. -
Make
genericLift
work properly for empty data types.
0.1.3 [2019.11.26]
- Add
genericLiftTyped
andgenericLiftTypedWithPkg
.
0.1.2
- Add a case for
V1
(i.e., empty data types), which diverges in the way you'd expect.
0.1.1
- Fix test suite on GHC 8.0
0.1
- Initial commit