filib/codeclimate-shellcheck

View on GitHub
src/CC/Types.hs

Summary

Maintainability
Test Coverage

Use newtype instead of data
Open

data Config = Config { _include_paths :: ![FilePath] } deriving (Generic, Show)
Severity: Minor
Found in src/CC/Types.hs by hlint

Found

data Config
  = Config {_include_paths :: ![FilePath]}
  deriving (Generic, Show)

Perhaps

newtype Config
  = Config {_include_paths :: [FilePath]}
  deriving (Generic, Show)

Use newtype instead of data
Open

data Content = Body T.Text deriving Show
Severity: Minor
Found in src/CC/Types.hs by hlint

Found

data Content
  = Body T.Text
  deriving Show

Perhaps

newtype Content
  = Body T.Text
  deriving Show

Applying this change:

  • decreases laziness

There are no issues that match your filters.

Category
Status