File tree 1 file changed +9
-1
lines changed
ghcide/session-loader/Development/IDE
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -517,7 +517,7 @@ loadSessionWithOptions recorder SessionLoadingOptions{..} dir = do
517
517
-- compilation but these are the true source of
518
518
-- information.
519
519
new_deps = fmap (\ (df, targets) -> RawComponentInfo (homeUnitId_ df) df targets cfp opts dep_info) newTargetDfs
520
- all_deps = new_deps `NE.appendList ` maybe [] id oldDeps
520
+ all_deps = new_deps `appendListToNonEmpty ` maybe [] id oldDeps
521
521
-- Get all the unit-ids for things in this component
522
522
inplace = map rawComponentUnitId $ NE. toList all_deps
523
523
@@ -1204,3 +1204,11 @@ showPackageSetupException (PackageCheckFailed BasePackageAbiMismatch{..}) = unwo
1204
1204
renderPackageSetupException :: FilePath -> PackageSetupException -> (NormalizedFilePath , ShowDiagnostic , Diagnostic )
1205
1205
renderPackageSetupException fp e =
1206
1206
ideErrorWithSource (Just " cradle" ) (Just DiagnosticSeverity_Error ) (toNormalizedFilePath' fp) (T. pack $ showPackageSetupException e)
1207
+
1208
+
1209
+ appendListToNonEmpty :: NE. NonEmpty a -> [a ] -> NE. NonEmpty a
1210
+ #if MIN_VERSION_base(4,16,0)
1211
+ appendListToNonEmpty = NE. appendList
1212
+ #else
1213
+ appendListToNonEmpty (x NE. :| xs) ys = x NE. :| (xs ++ ys)
1214
+ #endif
You can’t perform that action at this time.
0 commit comments