Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #42 from kallisti-dev/patch-1

add Eq, Show, and Read instances to all data types in Data.Conduit.Network
  • Loading branch information...
commit ef1543b7fc7917eb153d803d760979dd601848fb 2 parents 25132be + b52a954
@meteficha meteficha authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 network-conduit/Data/Conduit/Network.hs
View
4 network-conduit/Data/Conduit/Network.hs
@@ -80,6 +80,7 @@ data ServerSettings = ServerSettings
{ serverPort :: Int
, serverHost :: HostPreference
}
+ deriving (Eq, Show, Read)
-- | Run an @Application@ with the given settings. This function will create a
-- new listening socket, accept connections on it, and spawn a new thread for
@@ -107,6 +108,7 @@ data ClientSettings = ClientSettings
{ clientPort :: Int
, clientHost :: String
}
+ deriving (Eq, Show, Read)
-- | Run an @Application@ by connecting to the specified server.
--
@@ -151,7 +153,7 @@ data HostPreference =
| HostIPv4
| HostIPv6
| Host String
- deriving (Show, Eq, Ord)
+ deriving (Eq, Ord, Show, Read)
instance IsString HostPreference where
-- The funny code coming up is to get around some irritating warnings from
Please sign in to comment.
Something went wrong with that request. Please try again.