Skip to content

Commit 635bd43

Browse files
committed
addressing hlint suggestions
1 parent a4c87a4 commit 635bd43

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

ghcide/src/Development/IDE/Core/Compile.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ typecheckModule (IdeDefer defer) hsc keep_lbls pm = do
166166
diags = map errorPipeline warnings
167167
deferedError = any fst diags
168168
case etcm of
169-
Left errs -> return ((map snd diags) ++ errs, Nothing)
169+
Left errs -> return (map snd diags ++ errs, Nothing)
170170
Right tcm -> return (map snd diags, Just $ tcm{tmrDeferedError = deferedError})
171171
where
172172
demoteIfDefer = if defer then demoteTypeErrorsToWarnings else id

ghcide/src/Development/IDE/GHC/Dump.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ showAstDataHtml a0 = html $
5151
#if MIN_VERSION_ghc(9,2,1)
5252
| cts == empty = foo
5353
#endif
54-
| otherwise = foo $$ (caret $ ul cts)
54+
= foo $$ (caret $ ul cts)
5555
body cts = tag "body" $ cts $$ tag "script" (text js)
5656
header = tag "head" $ tag "style" $ text css
5757
html = tag "html"

ghcide/src/Development/IDE/GHC/ExactPrint.hs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
{-# LANGUAGE GADTs #-}
66
{-# LANGUAGE RankNTypes #-}
77
{-# LANGUAGE TypeFamilies #-}
8-
{-# LANGUAGE TypeSynonymInstances #-}
98

109
-- | This module hosts various abstractions and utility functions to work with ghc-exactprint.
1110
module Development.IDE.GHC.ExactPrint

ghcide/src/Development/IDE/Plugin/CodeAction/ExactPrint.hs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
{-# LANGUAGE OverloadedStrings #-}
44
{-# LANGUAGE RankNTypes #-}
55
{-# LANGUAGE CPP #-}
6-
{-# LANGUAGE TypeSynonymInstances #-}
76
{-# LANGUAGE FlexibleInstances #-}
87

98
module Development.IDE.Plugin.CodeAction.ExactPrint (

0 commit comments

Comments
 (0)