You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error in Stack.Build.Source.splitComponents? #6323
splitComponents:: [NamedComponent]
-> (SetText, SetText, SetText)
splitComponents =
go idididwhere
go a b c []= (Set.fromList $ a [], Set.fromList $ b [], Set.fromList $ c [])
go a b c (CLib:xs) = go a b c xs
go a b c (CExe x:xs) = go (a . (x:)) b c xs
go a b c (CTest x:xs) = go a (b . (x:)) c xs
go a b c (CBench x:xs) = go a b (c . (x:)) xs
became:
splitComponents:: [NamedComponent]
-> (SetText, SetText, SetText)
splitComponents =
go idididwhere
go a b c []= (Set.fromList $ a [], Set.fromList $ b [], Set.fromList $ c [])
go a b c (CLib:xs) = go a b c xs
go a b c (CInternalLib x:xs) = go (a . (x:)) b c xs -- <<<< Added line
go a b c (CExe x:xs) = go (a . (x:)) b c xs
go a b c (CTest x:xs) = go a (b . (x:)) c xs
go a b c (CBench x:xs) = go a b (c . (x:)) xs
It appears to me that that may be an error, as I can't see why the names of named library components would be added to the set of the names of executable components.
Activity
mpilgrem commentedon Oct 28, 2023
The reason that this has not manifested to date is that
splitComponentsis used only in one place:and, to date, it has not been possible to specify a named library component of a package as a target component.
Fix #6323 Fix splitComponents; make a helper function of NamedComponent