git.iko.soy/typeable/cabal2nix
on master help sign in
Fix pretty-printing of versions.
commit7e2d060399ffe07ba577f336359524bab0f9288f authorAndres Loeh <mail@andres-loeh.de> dateTue 9 Aug 2011, 14:15 (15 years ago) parenteb5c745
1 file changed+1−1
src/Cabal2Nix/Pretty.hs+1−1
src/Cabal2Nix/Pretty.hs+1−1
@@ -28,7 +28,7 @@ string :: String -> Doc
2828string = doubleQuotes . text
2929
3030version :: [Int] -> Doc
31−version = hcat . punctuate (text ".") . map int
31+version = doubleQuotes (hcat . punctuate (text ".") . map int)
3232
3333prepunctuate :: Doc -> [Doc] -> [Doc]
3434prepunctuate _ [] = []