--quiet back (#226).
This commit is contained in:
parent
8f3fb2a7d7
commit
ab5e082e81
@ -3,7 +3,6 @@ module Language.Haskell.GhcMod.Lint where
|
|||||||
import Control.Applicative ((<$>))
|
import Control.Applicative ((<$>))
|
||||||
import Data.List (intercalate)
|
import Data.List (intercalate)
|
||||||
import Language.Haskell.GhcMod.Types
|
import Language.Haskell.GhcMod.Types
|
||||||
import Language.Haskell.GhcMod.Utils
|
|
||||||
import Language.Haskell.HLint (hlint)
|
import Language.Haskell.HLint (hlint)
|
||||||
|
|
||||||
-- | Checking syntax of a target file using hlint.
|
-- | Checking syntax of a target file using hlint.
|
||||||
@ -22,4 +21,4 @@ lintSyntax opt file = pack <$> lint hopts file
|
|||||||
lint :: [String]
|
lint :: [String]
|
||||||
-> FilePath -- ^ A target file.
|
-> FilePath -- ^ A target file.
|
||||||
-> IO [String]
|
-> IO [String]
|
||||||
lint hopts file = map show <$> suppressStdout (hlint (file : hopts))
|
lint hopts file = map show <$> hlint (file : "--quiet" : hopts)
|
||||||
|
@ -72,7 +72,7 @@ Library
|
|||||||
, filepath
|
, filepath
|
||||||
, ghc
|
, ghc
|
||||||
, ghc-syb-utils
|
, ghc-syb-utils
|
||||||
, hlint >= 1.8.58
|
, hlint >= 1.8.61
|
||||||
, io-choice
|
, io-choice
|
||||||
, old-time
|
, old-time
|
||||||
, process
|
, process
|
||||||
|
Loading…
Reference in New Issue
Block a user