summaryrefslogtreecommitdiff
path: root/src/Language/PureScript/Linter/Imports.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Language/PureScript/Linter/Imports.hs')
-rw-r--r--src/Language/PureScript/Linter/Imports.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Language/PureScript/Linter/Imports.hs b/src/Language/PureScript/Linter/Imports.hs
index 3aa8bf6..7b1bbf0 100644
--- a/src/Language/PureScript/Linter/Imports.hs
+++ b/src/Language/PureScript/Linter/Imports.hs
@@ -279,7 +279,7 @@ lintImportDecl env mni qualifierName names ss declType allowImplicit =
isMatch _ _ = False
unused :: m Bool
- unused = warn (UnusedImport mni)
+ unused = warn (UnusedImport mni qualifierName)
warn :: SimpleErrorMessage -> m Bool
warn err = tell (errorMessage' ss err) >> return True
@@ -373,6 +373,7 @@ runDeclRef (ValueOpRef _ op) = Just $ ValOpName op
runDeclRef (TypeRef _ pn _) = Just $ TyName pn
runDeclRef (TypeOpRef _ op) = Just $ TyOpName op
runDeclRef (TypeClassRef _ pn) = Just $ TyClassName pn
+runDeclRef (KindRef _ pn) = Just $ KiName pn
runDeclRef _ = Nothing
checkDuplicateImports