Versionbump: Removed redundant instances.
This commit is contained in:
parent
3516335587
commit
8559456363
@ -93,6 +93,7 @@ dependencies:
|
|||||||
- connection
|
- connection
|
||||||
- universe
|
- universe
|
||||||
- universe-base
|
- universe-base
|
||||||
|
- universe-reverse-instances
|
||||||
- random
|
- random
|
||||||
- random-shuffle
|
- random-shuffle
|
||||||
- th-abstraction
|
- th-abstraction
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
-- SPDX-FileCopyrightText: 2024 Stephan Barth <stephan.barth@uniworx.de>, 2022 Gregor Kleen <gregor.kleen@ifi.lmu.de>
|
-- SPDX-FileCopyrightText: 2022-2024 Stephan Barth <stephan.barth@uniworx.de>, Gregor Kleen <gregor.kleen@ifi.lmu.de>
|
||||||
--
|
--
|
||||||
-- SPDX-License-Identifier: AGPL-3.0-or-later
|
-- SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
@ -12,8 +12,9 @@ import ClassyPrelude
|
|||||||
|
|
||||||
import Data.Universe
|
import Data.Universe
|
||||||
|
|
||||||
instance (Eq b, Finite a) => Eq (a -> b) where
|
-- is indirectly imported elsewhere and already provides instance (Eq b, Finite a) => Eq (a -> b) where
|
||||||
(==) f g = [ f k | k <- universeF ] == [ g k | k <- universeF ]
|
import Data.Universe.Instances.Eq()
|
||||||
|
|
||||||
|
|
||||||
instance (Hashable a, Hashable b, Finite a) => Hashable (a -> b) where
|
instance (Hashable a, Hashable b, Finite a) => Hashable (a -> b) where
|
||||||
hashWithSalt s f = s `hashWithSalt` [ (k, f k) | k <- universeF ]
|
hashWithSalt s f = s `hashWithSalt` [ (k, f k) | k <- universeF ]
|
||||||
|
|||||||
@ -208,6 +208,8 @@ _MailSmtpDataSet = to $ \MailSmtpData{..} -> none id
|
|||||||
, Set.null smtpRecipients
|
, Set.null smtpRecipients
|
||||||
]
|
]
|
||||||
|
|
||||||
|
--instance Eq (SelDateTimeFormat -> DateTimeFormat)
|
||||||
|
|
||||||
|
|
||||||
data MailContext = MailContext
|
data MailContext = MailContext
|
||||||
{ mcLanguages :: Languages
|
{ mcLanguages :: Languages
|
||||||
@ -215,6 +217,8 @@ data MailContext = MailContext
|
|||||||
, mcCsvOptions :: CsvOptions
|
, mcCsvOptions :: CsvOptions
|
||||||
} deriving (Eq, Ord, Read, Show, Generic)
|
} deriving (Eq, Ord, Read, Show, Generic)
|
||||||
|
|
||||||
|
--deriving via (Data.Universe.Class.Finite) instance Eq MailContext
|
||||||
|
|
||||||
deriveJSON defaultOptions
|
deriveJSON defaultOptions
|
||||||
{ fieldLabelModifier = intercalate "-" . map toLower . drop 1 . splitCamel
|
{ fieldLabelModifier = intercalate "-" . map toLower . drop 1 . splitCamel
|
||||||
} ''MailContext
|
} ''MailContext
|
||||||
|
|||||||
Reference in New Issue
Block a user