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

Commit 256bbd2

Browse files
committed
Revert floskell change
1 parent 43d59a0 commit 256bbd2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ 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
1211
import qualified Data.Text as T
1312
import qualified Data.Text.Encoding as T
1413
import Floskell
@@ -39,7 +38,7 @@ provider uri typ _opts =
3938
let (range, selectedContents) = case typ of
4039
FormatDocument -> (fullRange contents, contents)
4140
FormatRange r -> (r, extractRange r contents)
42-
result = reformat config (uriToFilePath uri) ((T.encodeUtf8 selectedContents))
41+
result = reformat config (uriToFilePath uri) (BS.fromStrict (T.encodeUtf8 selectedContents))
4342
in case result of
4443
Left err -> return $ IdeResultFail (IdeError PluginError (T.pack err) Null)
4544
Right new -> return $ IdeResultOk [TextEdit range (T.decodeUtf8 (BS.toStrict new))]

0 commit comments

Comments
 (0)