mirror of
https://github.com/haskell/ghcide.git
synced 2024-12-15 04:43:41 +03:00
Use IdeResult in generateCore (#180)
use the `IdeResult` type synonym in the new `generateCore` function's return type instead of effectively inlining it.
This commit is contained in:
parent
8745d54ae4
commit
e9d862e80f
@ -280,7 +280,7 @@ typeCheckRule =
|
|||||||
IdeOptions{ optDefer = defer} <- getIdeOptions
|
IdeOptions{ optDefer = defer} <- getIdeOptions
|
||||||
liftIO $ typecheckModule defer packageState tms pm
|
liftIO $ typecheckModule defer packageState tms pm
|
||||||
|
|
||||||
generateCore :: NormalizedFilePath -> Action ([FileDiagnostic], Maybe CoreModule)
|
generateCore :: NormalizedFilePath -> Action (IdeResult CoreModule)
|
||||||
generateCore file = do
|
generateCore file = do
|
||||||
deps <- use_ GetDependencies file
|
deps <- use_ GetDependencies file
|
||||||
(tm:tms) <- uses_ TypeCheck (file:transitiveModuleDeps deps)
|
(tm:tms) <- uses_ TypeCheck (file:transitiveModuleDeps deps)
|
||||||
|
Loading…
Reference in New Issue
Block a user