This repository was archived by the owner on Oct 7, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
hie-plugin-api/Haskell/Ide/Engine
src/Haskell/Ide/Engine/Plugin Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -212,8 +212,8 @@ type SymbolProvider = Uri -> IdeDeferM (IdeResult [DocumentSymbol])
212212data FormattingType = FormatDocument
213213 | FormatRange Range
214214
215- -- | Formats the given Uri with the given options.
216- -- A formatting type can be given to either format the whole documetn or only a Range.
215+ -- | Formats the given Uri with the given options.
216+ -- A formatting type can be given to either format the whole document or only a Range.
217217-- Fails if the formatter can not parse the source.
218218-- Failing menas here that a IdeResultFail is returned.
219219-- This can be used to display errors to the user, unless the error is an Internal one.
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ brittanyDescriptor plId = PluginDescriptor
3636 , pluginFormattingProvider = Just provider
3737 }
3838
39- -- | Formatter provider of Brittany.
39+ -- | Formatter provider of Brittany.
4040-- Formats the given source in either a given Range or the whole Document.
4141-- If the provider fails an error is returned that can be displayed to the user.
4242provider :: FormattingProvider
@@ -68,7 +68,7 @@ normalize (Range (Position sl _) (Position el _)) =
6868 -- Extend to the line below to replace newline character, as above
6969 Range (Position sl 0 ) (Position (el + 1 ) 0 )
7070
71- -- | Recursively search in every directory of the given filepath for brittany.yaml
71+ -- | Recursively search in every directory of the given filepath for brittany.yaml
7272-- If no such file has been found, return Nothing.
7373getConfFile :: FilePath -> IO (Maybe FilePath )
7474getConfFile = findLocalConfigPath . takeDirectory
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ floskellDescriptor plId = PluginDescriptor
2727 , pluginFormattingProvider = Just provider
2828 }
2929
30- -- | Format provider of Floskell.
30+ -- | Format provider of Floskell.
3131-- Formats the given source in either a given Range or the whole Document.
3232-- If the provider fails an error is returned that can be displayed to the user.
3333provider :: FormattingProvider
@@ -46,7 +46,7 @@ provider uri typ _opts =
4646 Left err -> return $ IdeResultFail (IdeError PluginError (T. pack err) Null )
4747 Right new -> return $ IdeResultOk [TextEdit range (T. decodeUtf8 (BS. toStrict new))]
4848
49- -- | Find Floskell Config, user and system wide or provides a default style.
49+ -- | Find Floskell Config, user and system wide or provides a default style.
5050-- Every directory of the filepath will be searched to find a user configuration.
5151-- Also looks into places such as XDG_CONFIG_DIRECTORY<https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html>.
5252-- This function may not throw an exception and returns a default config.
You can’t perform that action at this time.
0 commit comments