git.iko.soy/typeable/cabal2nix
on master help sign in
generate-cabal-file.hs: format the ISO date as a single number to avoid the need for leading zeros
commit267d0495209822ad819b58cb472a0da54f5a0b72 authorPeter Simons <simons@cryp.to> dateTue 10 Mar 2015, 13:02 (12 years ago) parent42724de
1 file changed+1−1
generate-cabal-file.hs+1−1
generate-cabal-file.hs+1−1
@@ -9,7 +9,7 @@ getVersion :: IO Version
99getVersion = do
1010 v <- readProcess "git" ["log", "-1", "--format=%ci"] ""
1111 let [y4,y3,y2,y1,'-',m2,m1,'-',d2,d1] = head (words v)
12− return (read ('[':y4:y3:y2:y1:',':m2:m1:',':d2:d1:"]"))
12+ return (read ('[':y4:y3:y2:y1:m2:m1:d2:d1:"]"))
1313
1414getGitVersion :: IO String
1515getGitVersion = do