git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix #1779 spurious UnusedDctorImport
commit526e700e6669c5741da398b0e3a665b6a1fea653 authorNicholas Wolverson <nicholas.wolverson@gmail.com> dateThu 31 Dec 2015, 23:23 (11 years ago) parent08aeed2
1 file changed+1−1
src/Language/PureScript/Linter/Imports.hs+1−1
src/Language/PureScript/Linter/Imports.hs+1−1
@@ -84,7 +84,7 @@ findUnusedImports (Module _ _ _ mdecls mexports) env usedImps = do
8484 forM_ (mapMaybe getTypeRef declrefs) $ \(tn, c) -> do
8585 let allCtors = dctorsForType mni tn
8686 when (runProperName tn `elem` usedNames) $ case (c, usedDctors `intersect` allCtors) of
87− (_, []) ->
87+ (_, []) | c /= Just [] ->
8888 tell $ errorMessage $ UnusedDctorImport tn
8989 (Nothing, usedDctors') ->
9090 tell $ errorMessage $ ImplicitDctorImport tn usedDctors'