Changelog for persistent-template-2.8.0
Unreleased changes
2.8.0
- Reduces the amount of code generated by Template Haskell. The amount of code generated for a certain function was O(N^2) with respect to the number of fields on a given Entity. This change shows dramatic improvements in benchmarks for compiling Persistent models. #
- Drops support for GHC 8.0, so that
DerivingStrategiescan be used bypersistent-template persistent-templatenow requiresDerivingStrategies,GeneralizedNewtypeDeriving, andStandaloneDerivingto be enabled in the file where Persistent entities are created- Fixes a long-standing issue where persistent-template would fail when
DeriveAnyClasswas enabled (See #578) - #1002
2.7.4
- Remove an overlapping instance for
Lift a. #998
2.7.3
- Update module documentation for
Database.Persist.THto better describe the purpose of the module #968 - Support template-haskell-2.15 #959
2.7.2
- Expose the knot tying logic of
parseReferencesso that users can build migrations from independently define entities at runtime #932
2.7.1
2.7.0
- Depends on
persistent-2.10.0which provides theOnlyOneUniqueKeyandAtLeastOneUniqueKeyclasses. Automatically generates instances for these classes based on how many unique keys the entity definition gets. This changes requiresUndecidableInstancesto be enabled on each module that generates entity definitions. #885 - Removed deprecated
sqlOnlySettings. Please usesqlSettingsinstead. #894
2.6.0
- persistent#846: Improve error message when marshalling fails
- persistent#826: Change
UniquederiveShow
2.5.4
- persistent#778: Add
persistManyFileWith.
2.5.3.1
- Slight improvement to the error message when a Persistent field can't be parsed from database results
2.5.3
- Exposed
parseReferencesto allow custom QuasiQuoters
2.5.2
- Fix incorrect
ToJSON/FromJSONinstance generation for generic backends
2.5.1.6
Allow non-null self-references in a list
2.5.1.4
- Allow composite Primary keys for tables that contain nullable fields.
- Support foreign keys to non-integer ids
2.5.1.3
- fix GHC 7.8 bug when a field name is "type"
2.5.1.2
- fix a bad Eq instance /= definition for Key when mpsGenetric=True
2.5.0.1
- workaround TH bug in GHC 7.10
2.5
- read/write typeclass split
2.1.6
- aeson 0.11
- transformers 0.5
2.1.4
support http-api-data for url serialization
2.1.3.3
By default explicitly use Int64 for foreign key references. This avoids confusion on a 32 bit system.
2.1.3.1
Support foreign key references to composite primary keys
2.1.0.1
Support for monad-control 1.0