Skip to content

Commit

Permalink
Deprecate mpsGeneric (#1250)
Browse files Browse the repository at this point in the history
  • Loading branch information
parsonsmatt committed Apr 26, 2021
1 parent 1075ba2 commit 5c424d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions persistent/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@
* Add the `runSqlCommand` function for running arbitrary SQL during
migrations.
* Add `migrateModels` function for a TH-free migration facility.
* [#1250](https://github.com/yesodweb/persistent/pull/1250)
* The `mpsGeneric` function has been deprecated. If you need this
functionality, please comment with your needs on the GitHub issue tracker.
We may un-deprecate it, or we may provide a new and better means of
facilitating a solution to your problem.

## 2.12.1.1

Expand Down
3 changes: 3 additions & 0 deletions persistent/Database/Persist/TH.hs
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,9 @@ data MkPersistSettings = MkPersistSettings
-- @since 2.13.0.0
}


{-# DEPRECATED mpsGeneric "The mpsGeneric function adds a considerable amount of overhead and complexity to the library without bringing significant benefit. We would like to remove it. If you require this feature, please comment on the linked GitHub issue, and we'll either keep it around, or we can figure out a nicer way to solve your problem.\n\n Github: https://github.com/yesodweb/persistent/issues/1204" #-}

-- | Set the 'ImplicitIdDef' in the given 'MkPersistSettings'. The default
-- value is 'autoIncrementingInteger'.
--
Expand Down

0 comments on commit 5c424d9

Please sign in to comment.