examples/echo_client.hs
Use newtype instead of data Open
Open
data EchoRequest = EchoRequest {
message :: String
} deriving (Generic, Show)
- Read upRead up
- Exclude checks
Found
data EchoRequest
= EchoRequest {message :: String}
deriving (Generic, Show)
Perhaps
newtype EchoRequest
= EchoRequest {message :: String}
deriving (Generic, Show)
Applying this change:
- decreases laziness