diff --git a/.hlint.yaml b/.hlint.yaml index f1eba2735..d837e6ad8 100644 --- a/.hlint.yaml +++ b/.hlint.yaml @@ -64,7 +64,6 @@ - ignore: {name: "Use replicate"} - ignore: {name: "Use void"} - ignore: {name: "Use bimap"} -- ignore: {name: "Use newtype instead of data"} - ignore: {name: "Use elemIndex"} - ignore: {name: "Use =="} - ignore: {name: "Use lambda-case"} diff --git a/hledger-lib/other/ledger-parse/Ledger/Parser/Text.hs b/hledger-lib/other/ledger-parse/Ledger/Parser/Text.hs index 14728fecb..251385ff7 100644 --- a/hledger-lib/other/ledger-parse/Ledger/Parser/Text.hs +++ b/hledger-lib/other/ledger-parse/Ledger/Parser/Text.hs @@ -32,7 +32,7 @@ infixl 4 <$!> (<$!>) :: TokenParsing m => (a -> b) -> m a -> m b f <$!> ma = ($!) <$> pure f <*> ma -data RawJournal = RawJournal [RawEntity] +newtype RawJournal = RawJournal [RawEntity] deriving (Show, Eq) data RawEntity = Whitespace String