salemove/freddy-hs

View on GitHub
examples/echo_client.hs

Summary

Maintainability
Test Coverage

Use newtype instead of data
Open

data EchoRequest = EchoRequest {
  message :: String
} deriving (Generic, Show)
Severity: Minor
Found in examples/echo_client.hs by hlint

Found

data EchoRequest
  = EchoRequest {message :: String}
  deriving (Generic, Show)

Perhaps

newtype EchoRequest
  = EchoRequest {message :: String}
  deriving (Generic, Show)

Applying this change:

  • decreases laziness

There are no issues that match your filters.

Category
Status