packages feed

versions 3.4.0.1 → 3.5.0

raw patch · 4 files changed

+19/−12 lines, 4 filesdep ~QuickCheckdep ~basedep ~megaparsec

Dependency ranges changed: QuickCheck, base, megaparsec

Files

CHANGELOG.md view
@@ -1,6 +1,12 @@ Changelog ========= +3.5.0+------+- Updated to `megaparsec-7`. Our `ParsingError` type alias has changed to match+  Megaparsec's new error model, and `errorBundlePretty` is now exposed instead of+  the old `parseErrorPretty`.+ 3.4.0.1 --------- - Enhanced the whitespace handling in `semver'`, `version'`, and `mess'`.
Data/Versions.hs view
@@ -52,7 +52,7 @@       -- | For when you'd like to mix version parsing into some larger parser.     , versioning', semver', version', mess'       -- * Pretty Printing-    , prettyV, prettySemVer, prettyVer, prettyMess, parseErrorPretty+    , prettyV, prettySemVer, prettyVer, prettyMess, errorBundlePretty       -- * Lenses     , Lens'     , Traversal'@@ -78,7 +78,7 @@ import           Data.Void import           Data.Word (Word) import           GHC.Generics-import           Text.Megaparsec+import           Text.Megaparsec hiding (chunk) import           Text.Megaparsec.Char import qualified Text.Megaparsec.Char.Lexer as L @@ -533,7 +533,7 @@ data VSep = VColon | VHyphen | VPlus | VUnder deriving (Eq,Show,Generic,NFData,Hashable)  -- | A synonym for the more verbose `megaparsec` error type.-type ParsingError = ParseError (Token T.Text) Void+type ParsingError = ParseErrorBundle T.Text Void  -- | Parse a piece of `T.Text` into either an (Ideal) `SemVer`, a (General) -- `Version`, or a (Complex) `Mess`.
test/Test.hs view
@@ -230,10 +230,10 @@ main = defaultMain suite  nameGrab :: Parsec Void T.Text T.Text-nameGrab = T.pack <$> manyTill anyChar (try finished)+nameGrab = T.pack <$> manyTill anySingle (try finished)   where finished = char '-' *> lookAhead digitChar  versionGrab :: Parsec Void T.Text Versioning-versionGrab = manyTill anyChar (try finished) *> ver+versionGrab = manyTill anySingle (try finished) *> ver   where finished = char '-' *> lookAhead digitChar         ver = fmap Ideal semver' <|> fmap General version' <|> fmap Complex mess'
versions.cabal view
@@ -1,11 +1,13 @@--- This file has been generated from package.yaml by hpack version 0.28.2.+cabal-version: 1.12++-- This file has been generated from package.yaml by hpack version 0.30.0. -- -- see: https://github.com/sol/hpack ----- hash: 2ae1eaeefbbfa3bff2f7d8525f103438a0cc4a2c5e14f63037e222adabda359a+-- hash: c88c48a70659eb4789fc7f8c40a392f43def7f65ede9b0a91be6cdc1e1eaac33  name:           versions-version:        3.4.0.1+version:        3.5.0 synopsis:       Types and parsers for software version numbers. description:    A library for parsing and comparing software version numbers. We like to give version numbers to our software in a myriad of ways. Some ways follow strict guidelines for incrementing and comparison. Some follow conventional wisdom and are generally self-consistent. Some are just plain asinine. This library provides a means of parsing and comparing /any/ style of versioning, be it a nice Semantic Version like this:                 .@@ -23,7 +25,6 @@ license:        BSD3 license-file:   LICENSE build-type:     Simple-cabal-version:  >= 1.10 extra-source-files:     CHANGELOG.md     README.md@@ -34,7 +35,7 @@       base >=4.8 && <4.12     , deepseq >=1.4 && <1.5     , hashable >=1.2 && <1.3-    , megaparsec >=6 && <7+    , megaparsec >=7 && <8     , text >=1.2 && <1.3   exposed-modules:       Data.Versions@@ -47,11 +48,11 @@       test   ghc-options: -fwarn-unused-imports -fwarn-unused-binds -fwarn-name-shadowing -fwarn-unused-matches -fwarn-incomplete-patterns -fwarn-redundant-constraints -Wincomplete-uni-patterns -threaded -with-rtsopts=-N   build-depends:-      QuickCheck >=2.9 && <2.12+      QuickCheck >=2.9 && <2.13     , base >=4.8 && <4.12     , base-prelude     , checkers >=0.4 && <0.5-    , megaparsec >=6 && <7+    , megaparsec >=7 && <8     , microlens >=0.4 && <0.5     , tasty >=0.10.1.2     , tasty-hunit >=0.9.2