cabal2nix 1.0 → 1.1
raw patch · 2 files changed
+3/−2 lines, 2 files
Files
- cabal2nix.cabal +1/−1
- cabal2nix.hs +2/−1
cabal2nix.cabal view
@@ -1,5 +1,5 @@ Name: cabal2nix-Version: 1.0+Version: 1.1 Copyright: (c) 2011 Peter Simons License: BSD3 License-File: LICENSE
cabal2nix.hs view
@@ -32,7 +32,8 @@ deriving (Show) toNixName :: String -> String-toNixName name = f name+toNixName [] = error "toNixName: empty string is not a valid argument"+toNixName name = f ((toLower (head name)) : tail name) where f [] = [] f ('-':c:cs) | c `notElem` "-" = toUpper c : f cs