This repository was archived by the owner on Oct 7, 2020. It is now read-only.
File tree 3 files changed +2
-7
lines changed
src/Haskell/Ide/Engine/Plugin
3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,6 @@ lintCmd = CmdSync $ \uri -> do
109
109
-- AZ:TODO: Why is this in IdeGhcM?
110
110
lintCmd' :: Uri -> IdeGhcM (IdeResult PublishDiagnosticsParams )
111
111
lintCmd' uri = pluginGetFile " lintCmd: " uri $ \ fp -> do
112
- <<<<<<< HEAD
113
112
eitherErrorResult <-
114
113
liftIO (try $ runExceptT $ runLintCmd fp [] :: IO (Either IOException (Either [Diagnostic ] [Idea ])))
115
114
-- TODO: GM.withMappedFile fp $ \file' -> liftIO $ runExceptT $ runLintCmd file' []
Original file line number Diff line number Diff line change 8
8
import Control.Monad.IO.Class (liftIO )
9
9
import Data.Aeson (Value (Null ))
10
10
import qualified Data.ByteString.Lazy as BS
11
+ import qualified Data.ByteString as B
11
12
import qualified Data.Text as T
12
13
import qualified Data.Text.Encoding as T
13
14
import Floskell
@@ -38,7 +39,7 @@ provider uri typ _opts =
38
39
let (range, selectedContents) = case typ of
39
40
FormatDocument -> (fullRange contents, contents)
40
41
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))
42
43
in case result of
43
44
Left err -> return $ IdeResultFail (IdeError PluginError (T. pack err) Null )
44
45
Right new -> return $ IdeResultOk [TextEdit range (T. decodeUtf8 (BS. toStrict new))]
Original file line number Diff line number Diff line change @@ -700,8 +700,3 @@ symbolProvider uri = pluginGetFile "ghc-mod symbolProvider: " uri $
700
700
symInfs <- concat <$> mapM declsToSymbolInf (imps ++ decls)
701
701
return $ IdeResultOk symInfs
702
702
-}
703
- =======
704
- >>>>>>> bd4e451a... Code moved to generic module
705
- =======
706
- - }
707
- >>>>>>> 8 ff74795... Try to fix some tests
You can’t perform that action at this time.
0 commit comments