Skip to content

Commit

Permalink
fix floskell test
Browse files Browse the repository at this point in the history
  • Loading branch information
kokobd committed Aug 3, 2022
1 parent ba9a761 commit d8600d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/hls-floskell-plugin/src/Ide/Plugin/Floskell.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ provider _ideState typ contents fp _ = liftIO $ do
config <- findConfigOrDefault file
let (range, selectedContents) = case typ of
FormatText -> (fullRange contents, contents)
FormatRange r -> (r, extractRange r contents)
FormatRange r -> (normalize r, extractRange r contents)
result = reformat config (Just file) . TL.encodeUtf8 $ TL.fromStrict selectedContents
case result of
Left err -> pure $ Left $ responseError $ T.pack $ "floskellCmd: " ++ err
Expand Down

0 comments on commit d8600d1

Please sign in to comment.