File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11Changelog for HLint (* = breaking change)
22
3+ Make sure the extension removed matches what you called it
34* #1124, make test into a flag rather than a mode, use --test
45 #1073, add LHS/RHS hints to the summary
56* Remove test --proof, --quickcheck and --typecheck, --tempdir
Original file line number Diff line number Diff line change @@ -226,6 +226,8 @@ import Data.Foldable -- @NoRefactor: refactor only works when using GHC 8.10
226226{- # LANGUAGE StandaloneKindSignatures #-} \
227227type T :: (k -> Type) -> k -> Type \
228228data T m a = MkT (m a) (T Maybe (m a))
229+ {- # LANGUAGE NoMonomorphismRestriction, NamedFieldPuns #-} \
230+ main = 1 -- @Note Extension NamedFieldPuns is not used
229231</TEST>
230232-}
231233
@@ -271,8 +273,8 @@ extensionsHint _ x =
271273 (comment (mkLanguagePragmas sl exts))
272274 (Just newPragma)
273275 ( [RequiresExtension (show gone) | (_, Just x) <- before \\ after, gone <- Map. findWithDefault [] x disappear] ++
274- [ Note $ " Extension " ++ show x ++ " is " ++ reason x
275- | (_ , Just x) <- explainedRemovals])
276+ [ Note $ " Extension " ++ s ++ " is " ++ reason x
277+ | (s , Just x) <- explainedRemovals])
276278 [ModifyComment (toSS (mkLanguagePragmas sl exts)) newPragma]
277279 | (L sl _, exts) <- languagePragmas $ pragmas (ghcAnnotations x)
278280 , let before = [(x, readExtension x) | x <- exts]
You can’t perform that action at this time.
0 commit comments