Skip to content

Commit e0c4181

Browse files
committed
Remove Typeable deriving crud
We no longer need to derive `Typeable` explicitly, so let's not.
1 parent b941823 commit e0c4181

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

Data/HashMap/Internal.hs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE BangPatterns, CPP, DeriveDataTypeable, MagicHash #-}
1+
{-# LANGUAGE BangPatterns, CPP, MagicHash #-}
22
{-# LANGUAGE ScopedTypeVariables #-}
33
{-# LANGUAGE PatternGuards #-}
44
{-# LANGUAGE RoleAnnotations #-}
@@ -143,7 +143,7 @@ import Data.Semigroup (Semigroup((<>)))
143143
import Control.DeepSeq (NFData(rnf))
144144
import Control.Monad.ST (ST, runST)
145145
import Data.Bits ((.&.), (.|.), complement, popCount, unsafeShiftL, unsafeShiftR)
146-
import Data.Data hiding (Typeable)
146+
import Data.Data
147147
import qualified Data.Foldable as Foldable
148148
#if MIN_VERSION_base(4,10,0)
149149
import Data.Bifoldable
@@ -157,7 +157,6 @@ import qualified Data.HashMap.Internal.Array as A
157157
import qualified Data.Hashable as H
158158
import Data.Hashable (Hashable)
159159
import Data.HashMap.Internal.List (isPermutationBy, unorderedCompare)
160-
import Data.Typeable (Typeable)
161160

162161
import GHC.Exts (isTrue#)
163162
import qualified GHC.Exts as Exts
@@ -215,7 +214,6 @@ data HashMap k v
215214
| Leaf !Hash !(Leaf k v)
216215
| Full !(A.Array (HashMap k v))
217216
| Collision !Hash !(A.Array (Leaf k v))
218-
deriving (Typeable)
219217

220218
type role HashMap nominal representational
221219

Data/HashSet/Internal.hs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE CPP, DeriveDataTypeable #-}
1+
{-# LANGUAGE CPP #-}
22
{-# LANGUAGE RoleAnnotations #-}
33
{-# LANGUAGE TypeFamilies #-}
44
{-# LANGUAGE Trustworthy #-}
@@ -89,7 +89,7 @@ module Data.HashSet.Internal
8989
) where
9090

9191
import Control.DeepSeq (NFData(..))
92-
import Data.Data hiding (Typeable)
92+
import Data.Data
9393
import Data.Functor.Classes
9494
import Data.HashMap.Internal
9595
( HashMap, foldMapWithKey, foldlWithKey, foldrWithKey
@@ -104,7 +104,6 @@ import Prelude hiding (filter, foldr, foldl, map, null)
104104
import qualified Data.Foldable as Foldable
105105
import qualified Data.HashMap.Internal as H
106106
import qualified Data.List as List
107-
import Data.Typeable (Typeable)
108107
import Text.Read
109108

110109
#if MIN_VERSION_hashable(1,2,5)
@@ -118,7 +117,7 @@ import qualified Control.DeepSeq as NF
118117
-- | A set of values. A set cannot contain duplicate values.
119118
newtype HashSet a = HashSet {
120119
asMap :: HashMap a ()
121-
} deriving (Typeable)
120+
}
122121

123122
type role HashSet nominal
124123

0 commit comments

Comments
 (0)