src/CC/Types.hs
Use newtype instead of data Open
Open
data Config = Config { _include_paths :: ![FilePath] } deriving (Generic, Show)
- Read upRead up
- Exclude checks
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
Open
data Content = Body T.Text deriving Show
- Read upRead up
- Exclude checks
Found
data Content
= Body T.Text
deriving Show
Perhaps
newtype Content
= Body T.Text
deriving Show
Applying this change:
- decreases laziness