packages feed

hspec-megaparsec 0.3.0 → 0.3.1

raw patch · 6 files changed

+25/−13 lines, 6 filesdep ~basedep ~hspec-megaparsecdep ~megaparsecPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: base, hspec-megaparsec, megaparsec

API changes (from Hackage documentation)

- Test.Hspec.Megaparsec: instance (Data.Data.Data t, Data.Data.Data e, GHC.Classes.Ord t, GHC.Classes.Ord e) => Data.Data.Data (Test.Hspec.Megaparsec.EC t e)
- Test.Hspec.Megaparsec: instance (GHC.Classes.Eq t, GHC.Classes.Eq e) => GHC.Classes.Eq (Test.Hspec.Megaparsec.EC t e)
+ Test.Hspec.Megaparsec: instance (GHC.Classes.Eq e, GHC.Classes.Eq t) => GHC.Classes.Eq (Test.Hspec.Megaparsec.EC t e)
+ Test.Hspec.Megaparsec: instance (GHC.Classes.Ord e, GHC.Classes.Ord t, Data.Data.Data e, Data.Data.Data t) => Data.Data.Data (Test.Hspec.Megaparsec.EC t e)

Files

CHANGELOG.md view
@@ -1,4 +1,10 @@-## Hspec Megaparec 0.3.0+## Hspec Megaparsec 0.3.1++* Support for Megaparsec 5.2.0.++* Drop support for GHC 7.6.++## Hspec Megaparsec 0.3.0  * Added helpers for parse error construction (useful with `shouldFailWith`):   `err`, `posI`, `posN`, `utok`, `utoks`, `ulabel`, `ueof`, `etok`, `etoks`,
LICENSE.md view
@@ -1,4 +1,4 @@-Copyright © 2016 Mark Karpov+Copyright © 2016–2017 Mark Karpov  All rights reserved. 
README.md view
@@ -18,6 +18,6 @@  ## License -Copyright © 2016 Mark Karpov+Copyright © 2016–2017 Mark Karpov  Distributed under BSD 3 clause license.
Test/Hspec/Megaparsec.hs view
@@ -1,6 +1,6 @@ -- | -- Module      :  Test.Hspec.Megaparsec--- Copyright   :  © 2016 Mark Karpov+-- Copyright   :  © 2016–2017 Mark Karpov -- License     :  BSD 3 clause -- -- Maintainer  :  Mark Karpov <markkarpov@openmailbox.org>@@ -320,7 +320,13 @@ -- column).  initialState :: s -> State s-initialState s = State s (initialPos "" :| []) defaultTabWidth+initialState s = State+  { stateInput           = s+  , statePos             = initialPos "" :| []+#if MIN_VERSION_megaparsec(5,2,0)+  , stateTokensProcessed = 0+#endif+  , stateTabWidth        = defaultTabWidth }  ---------------------------------------------------------------------------- -- Helpers
hspec-megaparsec.cabal view
@@ -1,7 +1,7 @@ -- -- Cabal configuration for ‘hspec-megaparsec’. ----- Copyright © 2016 Mark Karpov+-- Copyright © 2016–2017 Mark Karpov -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are@@ -31,7 +31,7 @@ -- POSSIBILITY OF SUCH DAMAGE.  name:                 hspec-megaparsec-version:              0.3.0+version:              0.3.1 cabal-version:        >= 1.10 license:              BSD3 license-file:         LICENSE.md@@ -52,9 +52,9 @@   default:            False  library-  build-depends:      base               >= 4.6 && < 5.0+  build-depends:      base               >= 4.7 && < 5.0                     , containers         >= 0.5 && < 0.6-                    , hspec-expectations >= 0.5 && < 0.8+                    , hspec-expectations >= 0.5 && < 0.9                     , megaparsec         >= 5.0 && < 6.0    if !impl(ghc >= 8.0)@@ -77,11 +77,11 @@     ghc-options:      -Wall -Werror   else     ghc-options:      -Wall-  build-depends:      base               >= 4.6 && < 5.0+  build-depends:      base               >= 4.7 && < 5.0                     , containers         >= 0.5 && < 0.6                     , hspec              >= 2.0 && < 3.0-                    , hspec-expectations >= 0.5 && < 0.8-                    , hspec-megaparsec   >= 0.3.0+                    , hspec-expectations >= 0.5 && < 0.9+                    , hspec-megaparsec   >= 0.3.1                     , megaparsec         >= 5.0 && < 6.0   if !impl(ghc >= 8.0)     build-depends:    semigroups         == 0.18.*
tests/Main.hs view
@@ -1,7 +1,7 @@ -- -- Hspec Megaparsec tests. ----- Copyright © 2016 Mark Karpov+-- Copyright © 2016–2017 Mark Karpov -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are