@@ -11,7 +11,7 @@ import Distribution.NixOS.Derivation.Cabal
1111import Cabal2Nix.Name
1212import Cabal2Nix.CorePackages
1313import Data.List
14−-- import Data.Char
14+import Data.Char
1515
1616cabal2nix :: Cabal.GenericPackageDescription -> Derivation
1717cabal2nix cabal = MkDerivation
@@ -62,7 +62,7 @@ quote '"' = "\\\""
6262quote c = [c]
6363
6464normalizeList :: [String] -> [String]
65−normalizeList = nub . sort {- By (\x y -> compare (map toLower x) (map toLower y)) -}
65+normalizeList = nub . sortBy (\x y -> compare (map toLower x) (map toLower y))
6666
6767normalizeNixNames :: [String] -> [String]
6868normalizeNixNames = normalizeList . map toNixName