serokell/importify

View on GitHub

Showing 8 of 8 total issues

Unused LANGUAGE pragma
Open

{-# LANGUAGE ExplicitForAll      #-}
Severity: Minor
Found in src/Importify/Main/Cache.hs by hlint

Found

{-# LANGUAGE ExplicitForAll #-}

Perhaps

Applying this change:

  • Extension ExplicitForAll is implied by ScopedTypeVariables

Unused LANGUAGE pragma
Open

{-# LANGUAGE ExplicitForAll      #-}
Severity: Minor
Found in src/Importify/Resolution/Qualified.hs by hlint

Found

{-# LANGUAGE ExplicitForAll #-}

Perhaps

Applying this change:

  • Extension ExplicitForAll is implied by ScopedTypeVariables

Unused LANGUAGE pragma
Open

{-# LANGUAGE MultiParamTypeClasses  #-}
Severity: Minor
Found in src/Importify/Environment.hs by hlint

Found

{-# LANGUAGE MultiParamTypeClasses #-}

Perhaps

Applying this change:

  • Extension MultiParamTypeClasses is implied by FunctionalDependencies

Unused LANGUAGE pragma
Open

{-# LANGUAGE ExplicitForAll      #-}
Severity: Minor
Found in src/Importify/Stack.hs by hlint

Found

{-# LANGUAGE ExplicitForAll #-}

Perhaps

Applying this change:

  • Extension ExplicitForAll is implied by ScopedTypeVariables

Unused LANGUAGE pragma
Open

{-# LANGUAGE ExplicitForAll      #-}
Severity: Minor
Found in src/Importify/Preprocessor.hs by hlint

Found

{-# LANGUAGE ExplicitForAll #-}

Perhaps

Applying this change:

  • Extension ExplicitForAll is implied by ScopedTypeVariables

Redundant fmap
Open

        byModuleName             = maybe True isImportNeeded
                                 . fmap dropAnn
                                 . qualifiedName
Severity: Minor
Found in src/Importify/Resolution/Qualified.hs by hlint

Found

maybe True isImportNeeded . fmap dropAnn . qualifiedName

Perhaps

(maybe True (isImportNeeded . dropAnn) . qualifiedName)

Use unwords
Open

    printComments = intercalate " " . map ((" " ++) . printComment)
Severity: Minor
Found in src/Importify/Pretty.hs by hlint

Found

intercalate " "

Perhaps

unwords

Use =<
Open

    join (errorForcer <$> parseModuleAfterCPP extensions includeFiles pathToModule)
Severity: Minor
Found in src/Importify/Preprocessor.hs by hlint

Found

join
  (errorForcer 
     parseModuleAfterCPP extensions includeFiles pathToModule)

Perhaps

(errorForcer =<<
   parseModuleAfterCPP extensions includeFiles pathToModule)
Severity
Category
Status
Source
Language