I was having a look into the code to see how hard it would be to implement
https://github.com/haskell/haskell-ide-engine/issues/1086 and I got stuck trying to understand CodeAction. With hsimport I want to have the option to add a symbol, that is the name of the function I want to import. Here is an example GHC error message:
• Variable not in scope:
readCreateProcessWithExitCode
:: process-1.6.3.0:System.Process.Common.CreateProcess
-> [Char] -> IO (ExitCode, String, String)
• Perhaps you want to add ‘readCreateProcessWithExitCode’
to the import list in the import of ‘System.Process’
(src/Interpreter.hs:11:1-27).
In this case I want to construct 2 CodeActions, one that contains only System.Process and another that contains System.Process and readCreateProcessWithExitCode, how would I construct the second one?