git.iko.soy/typeable/cabal2nix
on master help sign in
normalizeList: don't accept "" in a list of strings
0c4c1f2Peter Simons
src/Cabal2Nix/Normalize.hs+1−1
@@ -41,7 +41,7 @@ quote (c:cs) = c : quote cs
41quote [] = []
41quote [] = []
42
42
43normalizeList :: [String] -> [String]
43normalizeList :: [String] -> [String]
44−normalizeList = nub . sortBy (compare `on` map toLower)
44+normalizeList = nub . sortBy (compare `on` map toLower) . filter (not . null)
45
45
46normalizeNixNames :: [String] -> [String]
46normalizeNixNames :: [String] -> [String]
47normalizeNixNames = normalizeList . map toNixName
47normalizeNixNames = normalizeList . map toNixName