Skip to content

Commit 6232fb7

Browse files
committed
Fix stylish-haskell linting
1 parent 53a178d commit 6232fb7

File tree

3 files changed

+19
-28
lines changed

3 files changed

+19
-28
lines changed

exe/Plugins.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ import qualified Ide.Plugin.Brittany as Brittany
119119
#endif
120120

121121
#if hindent
122-
import qualified Ide.Plugin.HIndent as HIndent
122+
import qualified Ide.Plugin.HIndent as HIndent
123123
#endif
124124

125125

plugins/hls-hindent-plugin/src/Path/Find.hs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@ module Path.Find
1111
,findInParents)
1212
where
1313

14-
import Control.Exception (evaluate)
15-
import Control.DeepSeq (force)
16-
import Control.Monad
17-
import Control.Monad.Catch
18-
import Control.Monad.IO.Class
19-
import System.IO.Error (isPermissionError)
20-
import Data.List
21-
import Path
22-
import Path.IO hiding (findFiles)
23-
import System.PosixCompat.Files (getSymbolicLinkStatus, isSymbolicLink)
14+
import Control.DeepSeq (force)
15+
import Control.Exception (evaluate)
16+
import Control.Monad
17+
import Control.Monad.Catch
18+
import Control.Monad.IO.Class
19+
import Data.List
20+
import Path
21+
import Path.IO hiding (findFiles)
22+
import System.IO.Error (isPermissionError)
23+
import System.PosixCompat.Files (getSymbolicLinkStatus,
24+
isSymbolicLink)
2425

2526
-- | Find the location of a file matching the given predicate.
2627
findFileUp :: (MonadIO m,MonadThrow m)
@@ -95,4 +96,4 @@ findInParents f path = do
9596
let next = parent path
9697
if next == path
9798
then return Nothing
98-
else findInParents f next
99+
else findInParents f next

plugins/hls-hindent-plugin/test/Main.hs

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,12 @@ module Main
44
) where
55

66
import qualified Ide.Plugin.HIndent as HIndent
7-
import System.FilePath ( (</>) )
8-
import Test.Hls
9-
( testGroup,
10-
defaultTestRunner,
11-
TestName,
12-
TestTree,
13-
goldenWithHaskellDocFormatter,
14-
def,
15-
Session,
16-
TextDocumentIdentifier,
17-
formatDoc,
18-
formatRange,
19-
Position (..),
20-
Range (..),
21-
FormattingOptions (..),
22-
)
7+
import System.FilePath ((</>))
8+
import Test.Hls (FormattingOptions (..), Position (..),
9+
Range (..), Session, TestName, TestTree,
10+
TextDocumentIdentifier, def,
11+
defaultTestRunner, formatDoc, formatRange,
12+
goldenWithHaskellDocFormatter, testGroup)
2313

2414
main :: IO ()
2515
main = defaultTestRunner tests

0 commit comments

Comments
 (0)