You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Cabal/Distribution/Types/Version.hs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -102,13 +102,13 @@ instance Parsec Version where
102
102
mkVersion <$>P.sepBy1 digit (P.char '.') <* tags
103
103
where
104
104
digitParser v
105
-
| v >=CabalSpecV1_24=P.integral
106
-
|otherwise= (some d >>= toNumber) P.<?>"non-leading-zero integral"
105
+
| v >=CabalSpecV2_0=P.integral
106
+
|otherwise= (some d >>= toNumber) P.<?>"non-leading-zero integral"
107
107
where
108
108
toNumber::CabalParsingm=> [Int] ->mInt
109
109
toNumber [0] =return0
110
110
toNumber xs@(0:_) =do
111
-
parsecWarning PWTVersionLeadingZeros"Version digit with leading zero. Use cabal-version: 1.24 or later to write such versions. For more information see https://github.com/haskell/cabal/issues/5092"
111
+
parsecWarning PWTVersionLeadingZeros"Version digit with leading zero. Use cabal-version: 2.0 or later to write such versions. For more information see https://github.com/haskell/cabal/issues/5092"
112
112
return$ foldl' (\a b -> a *10+ b) 0 xs
113
113
toNumber xs =return$ foldl' (\a b -> a *10+ b) 0 xs
MiniAgda.cabal:0:0: Version digit with leading zero. Use cabal-version: 1.24 or later to write such versions. For more information see https://github.com/haskell/cabal/issues/5092
1
+
MiniAgda.cabal:0:0: Version digit with leading zero. Use cabal-version: 2.0 or later to write such versions. For more information see https://github.com/haskell/cabal/issues/5092
0 commit comments