@@ -8,6 +8,7 @@ module Build
8 , Module(..)
8 , Module(..)
9 , CachedInterface(..)
9 , CachedInterface(..)
10 , DocsGoal(..)
10 , DocsGoal(..)
@@ -185,6 +186,22 @@ fromMains style root details paths =
192+getMainNames :: Artifacts -> NE.List ModuleName.Raw
193+getMainNames (Artifacts _ _ mains _) =
194+ fmap getMainName mains
197+getMainName :: Main -> ModuleName.Raw
201+ Outside name _ _ -> name
@@ -878,7 +895,7 @@ isInsideSrcDirs (Env _ root _ srcDirs _ _) path absolutePath =
878 case (exits, Maybe.catMaybes maybes) of
895 case (exits, Maybe.catMaybes maybes) of
879 (_, [(_,name)]) -> Right (Location absolutePath path (LInside name))
896 (_, [(_,name)]) -> Right (Location absolutePath path (LInside name))
880 ([], []) -> Right (Location absolutePath path (LOutside path))
897 ([], []) -> Right (Location absolutePath path (LOutside path))
881− (_, (s1,_):(s2,_):_) -> Left (Exit.BP_WithAmbiguousSrcDir s1 s2)
898+ (_, (s1,_):(s2,_):_) -> Left (Exit.BP_WithAmbiguousSrcDir path s1 s2)
882 (exit:_, _) -> Left exit
899 (exit:_, _) -> Left exit