Skip to content

Commit 24c0bfc

Browse files
committed
WIP: Drop possibly gratuitous Typeable instances
Does anyone know why they are needed?
1 parent 569d5d1 commit 24c0bfc

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

Network/Socket/Imports.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module Network.Socket.Imports (
77
, module Data.Maybe
88
, module Data.Monoid
99
, module Data.Ord
10-
, module Data.Typeable
1110
, module Data.Word
1211
, module Foreign.C.String
1312
, module Foreign.C.Types
@@ -24,7 +23,6 @@ import Data.List
2423
import Data.Maybe
2524
import Data.Monoid
2625
import Data.Ord
27-
import Data.Typeable
2826
import Data.Word
2927
import Foreign.C.String
3028
import Foreign.C.Types

Network/Socket/Info.hsc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# LANGUAGE CPP #-}
2-
{-# LANGUAGE DeriveDataTypeable #-}
32
{-# LANGUAGE RecordWildCards #-}
43
{-# OPTIONS_GHC -fno-warn-orphans #-}
54

@@ -63,7 +62,7 @@ data AddrInfoFlag =
6362
-- addresses are found, IPv6-mapped IPv4 addresses will be
6463
-- returned. (Only some platforms support this.)
6564
| AI_V4MAPPED
66-
deriving (Eq, Read, Show, Typeable)
65+
deriving (Eq, Read, Show)
6766

6867
aiFlagMapping :: [(AddrInfoFlag, CInt)]
6968

@@ -106,7 +105,7 @@ data AddrInfo = AddrInfo {
106105
, addrProtocol :: ProtocolNumber
107106
, addrAddress :: SockAddr
108107
, addrCanonName :: Maybe String
109-
} deriving (Eq, Show, Typeable)
108+
} deriving (Eq, Show)
110109

111110
instance Storable AddrInfo where
112111
sizeOf _ = #const sizeof(struct addrinfo)
@@ -170,7 +169,7 @@ data NameInfoFlag =
170169
-- looked up. Instead, a numeric representation of the
171170
-- service is returned.
172171
| NI_NUMERICSERV
173-
deriving (Eq, Read, Show, Typeable)
172+
deriving (Eq, Read, Show)
174173

175174
niFlagMapping :: [(NameInfoFlag, CInt)]
176175

Network/Socket/Options.hsc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# LANGUAGE CPP #-}
2-
{-# LANGUAGE DeriveDataTypeable #-}
32
{-# LANGUAGE PatternSynonyms #-}
43
{-# LANGUAGE ScopedTypeVariables #-}
54
{-# LANGUAGE ViewPatterns #-}

Network/Socket/Shutdown.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# LANGUAGE CPP #-}
2-
{-# LANGUAGE DeriveDataTypeable #-}
32

43
#include "HsNetDef.h"
54

@@ -27,7 +26,6 @@ import Network.Socket.Types
2726
data ShutdownCmd = ShutdownReceive
2827
| ShutdownSend
2928
| ShutdownBoth
30-
deriving Typeable
3129

3230
sdownCmdToInt :: ShutdownCmd -> CInt
3331
sdownCmdToInt ShutdownReceive = 0

0 commit comments

Comments
 (0)