Use IdeResult in generateCore (#180)
use the `IdeResult` type synonym in the new `generateCore` function's return
type instead of effectively inlining it.
commite9d862e80f41eb758e88d2f5859e57c3b5b9d247
authorMartin Huschenbett <martin.huschenbett@posteo.me>
dateMon 28 Oct 2019, 17:08 (7 years ago)
parent8745d54
src/Development/IDE/Core/Rules.hs+1−1
@@ -280,7 +280,7 @@ typeCheckRule =
280280 IdeOptions{ optDefer = defer} <- getIdeOptions
281281 liftIO $ typecheckModule defer packageState tms pm
282282
283−generateCore :: NormalizedFilePath -> Action ([FileDiagnostic], Maybe CoreModule)
283+generateCore :: NormalizedFilePath -> Action (IdeResult CoreModule)
284284generateCore file = do
285285 deps <- use_ GetDependencies file
286286 (tm:tms) <- uses_ TypeCheck (file:transitiveModuleDeps deps)