Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit ee0fe2f

Browse files
committed
Fix bad rebase
1 parent 7843214 commit ee0fe2f

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

src/Haskell/Ide/Engine/Plugin/ApplyRefact.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ lintCmd = CmdSync $ \uri -> do
109109
-- AZ:TODO: Why is this in IdeGhcM?
110110
lintCmd' :: Uri -> IdeGhcM (IdeResult PublishDiagnosticsParams)
111111
lintCmd' uri = pluginGetFile "lintCmd: " uri $ \fp -> do
112-
<<<<<<< HEAD
113112
eitherErrorResult <-
114113
liftIO (try $ runExceptT $ runLintCmd fp [] :: IO (Either IOException (Either [Diagnostic] [Idea])))
115114
--TODO: GM.withMappedFile fp $ \file' -> liftIO $ runExceptT $ runLintCmd file' []

src/Haskell/Ide/Engine/Plugin/Floskell.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ where
88
import Control.Monad.IO.Class (liftIO)
99
import Data.Aeson (Value (Null))
1010
import qualified Data.ByteString.Lazy as BS
11+
import qualified Data.ByteString as B
1112
import qualified Data.Text as T
1213
import qualified Data.Text.Encoding as T
1314
import Floskell
@@ -38,7 +39,7 @@ provider uri typ _opts =
3839
let (range, selectedContents) = case typ of
3940
FormatDocument -> (fullRange contents, contents)
4041
FormatRange r -> (r, extractRange r contents)
41-
result = reformat config (uriToFilePath uri) (BS.fromStrict (T.encodeUtf8 selectedContents))
42+
result = reformat config (uriToFilePath uri) ((T.encodeUtf8 selectedContents))
4243
in case result of
4344
Left err -> return $ IdeResultFail (IdeError PluginError (T.pack err) Null)
4445
Right new -> return $ IdeResultOk [TextEdit range (T.decodeUtf8 (BS.toStrict new))]

src/Haskell/Ide/Engine/Plugin/GhcMod.hs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -700,8 +700,3 @@ symbolProvider uri = pluginGetFile "ghc-mod symbolProvider: " uri $
700700
symInfs <- concat <$> mapM declsToSymbolInf (imps ++ decls)
701701
return $ IdeResultOk symInfs
702702
-}
703-
=======
704-
>>>>>>> bd4e451a... Code moved to generic module
705-
=======
706-
-}
707-
>>>>>>> 8ff74795... Try to fix some tests

0 commit comments

Comments
 (0)