fix(haskell-parsers): accept empty defaults for packages

This commit is contained in:
Sridhar Ratnakumar 2024-04-22 20:51:17 +10:00 committed by Sridhar Ratnakumar
parent 462f004e30
commit d9287fee68

View File

@ -58,7 +58,8 @@ in
res.value
else throwErrorOnCabalProjectParseError "Failed to parse ${cabalProjectFile}: ${builtins.toJSON res}"
else
[ projectRoot ];
lib.optional (traversal.findSingleCabalFile projectRoot != null)
projectRoot;
in
lib.listToAttrs
(map