This repository was archived by the owner on Oct 7, 2020. It is now read-only.
File tree 3 files changed +6
-6
lines changed
hie-plugin-api/Haskell/Ide/Engine
src/Haskell/Ide/Engine/Plugin
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])
212
212
data FormattingType = FormatDocument
213
213
| FormatRange Range
214
214
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.
217
217
-- Fails if the formatter can not parse the source.
218
218
-- Failing menas here that a IdeResultFail is returned.
219
219
-- 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
36
36
, pluginFormattingProvider = Just provider
37
37
}
38
38
39
- -- | Formatter provider of Brittany.
39
+ -- | Formatter provider of Brittany.
40
40
-- Formats the given source in either a given Range or the whole Document.
41
41
-- If the provider fails an error is returned that can be displayed to the user.
42
42
provider :: FormattingProvider
@@ -68,7 +68,7 @@ normalize (Range (Position sl _) (Position el _)) =
68
68
-- Extend to the line below to replace newline character, as above
69
69
Range (Position sl 0 ) (Position (el + 1 ) 0 )
70
70
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
72
72
-- If no such file has been found, return Nothing.
73
73
getConfFile :: FilePath -> IO (Maybe FilePath )
74
74
getConfFile = findLocalConfigPath . takeDirectory
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ floskellDescriptor plId = PluginDescriptor
27
27
, pluginFormattingProvider = Just provider
28
28
}
29
29
30
- -- | Format provider of Floskell.
30
+ -- | Format provider of Floskell.
31
31
-- Formats the given source in either a given Range or the whole Document.
32
32
-- If the provider fails an error is returned that can be displayed to the user.
33
33
provider :: FormattingProvider
@@ -46,7 +46,7 @@ provider uri typ _opts =
46
46
Left err -> return $ IdeResultFail (IdeError PluginError (T. pack err) Null )
47
47
Right new -> return $ IdeResultOk [TextEdit range (T. decodeUtf8 (BS. toStrict new))]
48
48
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.
50
50
-- Every directory of the filepath will be searched to find a user configuration.
51
51
-- Also looks into places such as XDG_CONFIG_DIRECTORY<https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html>.
52
52
-- This function may not throw an exception and returns a default config.
You can’t perform that action at this time.
0 commit comments