From ab5a2ea96fe5a708b624c2cb3f04b8512afa9340 Mon Sep 17 00:00:00 2001 From: parsonsmatt Date: Fri, 23 Apr 2021 16:33:41 -0600 Subject: [PATCH] Deprecate mpsGeneric --- persistent/Database/Persist/TH.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/persistent/Database/Persist/TH.hs b/persistent/Database/Persist/TH.hs index d7bba56b4..07255a2e0 100644 --- a/persistent/Database/Persist/TH.hs +++ b/persistent/Database/Persist/TH.hs @@ -531,6 +531,8 @@ data MkPersistSettings = MkPersistSettings -- @since 2.8.1 } +{-# 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" #-} + data EntityJSON = EntityJSON { entityToJSON :: Name -- ^ Name of the @toJSON@ implementation for @Entity a@.