Skip to content

Commit 360aaa2

Browse files
committed
Remove derived Typeable instances
GHC has added Typeable instances by default for a long time.
1 parent 9256d71 commit 360aaa2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

typed-protocols-doc/demo/DemoProtocol.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ instance Codec (DemoCodec a) where
8080
type MonadDecode (DemoCodec a) = Except String
8181

8282
data PongEnum = NormalPong | ComplexPong
83-
deriving (Show, Read, Eq, Ord, Enum, Bounded, Typeable)
83+
deriving (Show, Read, Eq, Ord, Enum, Bounded)
8484

8585
data PingEnum = PingRequest | EndPing
86-
deriving (Show, Read, Eq, Ord, Enum, Bounded, Typeable)
86+
deriving (Show, Read, Eq, Ord, Enum, Bounded)
8787

8888
deriving via (ViaEnum PongEnum)
8989
instance (Codec codec, HasInfo codec (DefEnumEncoding codec)) => HasInfo codec PongEnum

typed-protocols-doc/test/Network/TypedProtocol/Tests/TestProtocol.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ instance Codec (TestCodec a) where
8080
type MonadDecode (TestCodec a) = Except String
8181

8282
data PongEnum = NormalPong | ComplexPong
83-
deriving (Show, Read, Eq, Ord, Enum, Bounded, Typeable)
83+
deriving (Show, Read, Eq, Ord, Enum, Bounded)
8484

8585
data PingEnum = PingRequest | EndPing
86-
deriving (Show, Read, Eq, Ord, Enum, Bounded, Typeable)
86+
deriving (Show, Read, Eq, Ord, Enum, Bounded)
8787

8888
deriving via (ViaEnum PongEnum)
8989
instance (Codec codec, HasInfo codec (DefEnumEncoding codec)) => HasInfo codec PongEnum

0 commit comments

Comments
 (0)