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

Commit ba44c58

Browse files
authored
Merge pull request #1109 from luigy/bump-floskell
Bump floskell
2 parents ad2c8f9 + da7551c commit ba44c58

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@
3434

3535
[submodule "submodules/floskell"]
3636
path = submodules/floskell
37-
url = https://github.com/bubba/floskell
37+
url = https://github.com/ennocramer/floskell

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ provider uri typ _opts =
3838
let (range, selectedContents) = case typ of
3939
FormatDocument -> (fullRange contents, contents)
4040
FormatRange r -> (r, extractRange r contents)
41-
result = reformat config (uriToFilePath uri) (T.encodeUtf8 selectedContents)
41+
result = reformat config (uriToFilePath uri) (BS.fromStrict (T.encodeUtf8 selectedContents))
4242
in case result of
4343
Left err -> return $ IdeResultFail (IdeError PluginError (T.pack err) Null)
4444
Right new -> return $ IdeResultOk [TextEdit range (T.decodeUtf8 (BS.toStrict new))]

test/functional/FormatSpec.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ formattedFloskell =
150150
\bar :: String -> IO String\n\
151151
\bar s = do\n\
152152
\ x <- return \"hello\"\n\
153-
\ return \"asdf\"\n\
153+
\ return \"asdf\"\n\n\
154154
\"
155155

156156
formattedBrittanyPostFloskell :: T.Text
@@ -164,4 +164,4 @@ formattedBrittanyPostFloskell =
164164
\bar :: String -> IO String\n\
165165
\bar s = do\n\
166166
\ x <- return \"hello\"\n\
167-
\ return \"asdf\"\n"
167+
\ return \"asdf\"\n\n"

0 commit comments

Comments
 (0)