Skip to content

Commit

Permalink
Simplify a line that had HLint complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
ndmitchell committed Jan 14, 2024
1 parent 5d7e561 commit 7aaaecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hint/Pragma.hs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ optToLanguage (L loc _, flags) languagePragmas
-- 'ls' is a list of language features enabled by this
-- OPTIONS_GHC pragma that are not enabled by LANGUAGE pragmas
-- in this module.
let ls = filter (not . (`elem` languagePragmas)) (concat $ catMaybes vs) in
let ls = concatMap (filter (`notElem` languagePragmas)) $ catMaybes vs in
Just (res, ls)
where
-- Try reinterpreting each flag as a list of language features
Expand Down

0 comments on commit 7aaaecf

Please sign in to comment.