packages feed

hspec-megaparsec 2.0.0 → 2.0.1

raw patch · 6 files changed

+17/−24 lines, 6 filesdep −semigroupsdep −voiddep ~base

Dependencies removed: semigroups, void

Dependency ranges changed: base

Files

CHANGELOG.md view
@@ -1,3 +1,10 @@+## Hspec Megaparsec 2.0.1++* Adjusted `shouldParse` to use `shouldBe` from `hspec` under the hood to+  take advantage of its pretty colorful error reporting.++* Dropped support for GHC 8.0 and older.+ ## Hspec Megaparsec 2.0.0  * To be used with Megaparsec 7.
LICENSE.md view
@@ -1,4 +1,4 @@-Copyright © 2016–2018 Mark Karpov+Copyright © 2016–present Mark Karpov  All rights reserved. 
README.md view
@@ -18,6 +18,6 @@  ## License -Copyright © 2016–2018 Mark Karpov+Copyright © 2016–present Mark Karpov  Distributed under BSD 3 clause license.
Test/Hspec/Megaparsec.hs view
@@ -1,6 +1,6 @@ -- | -- Module      :  Test.Hspec.Megaparsec--- Copyright   :  © 2016–2018 Mark Karpov+-- Copyright   :  © 2016–present Mark Karpov -- License     :  BSD 3 clause -- -- Maintainer  :  Mark Karpov <markkarpov92@gmail.com>@@ -62,8 +62,7 @@ r `shouldParse` v = case r of   Left e -> expectationFailure $ "expected: " ++ show v ++     "\nbut parsing failed with error:\n" ++ showBundle e-  Right x -> unless (x == v) . expectationFailure $-    "expected: " ++ show v ++ "\nbut got: " ++ show x+  Right x -> x `shouldBe` v  -- | Create an expectation by saying that the parser should successfully -- parse a value and that the value should satisfy some predicate.
hspec-megaparsec.cabal view
@@ -1,7 +1,7 @@ name:                 hspec-megaparsec-version:              2.0.0+version:              2.0.1 cabal-version:        1.18-tested-with:          GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.3+tested-with:          GHC==8.2.2, GHC==8.4.4, GHC==8.6.5 license:              BSD3 license-file:         LICENSE.md author:               Mark Karpov <markkarpov92@gmail.com>@@ -21,18 +21,16 @@   default:            False  library-  build-depends:      base               >= 4.8 && < 5.0-                    , containers         >= 0.5 && < 0.6+  build-depends:      base               >= 4.10 && < 5.0+                    , containers         >= 0.5 && < 0.7                     , hspec-expectations >= 0.8 && < 0.9                     , megaparsec         >= 7.0 && < 8.0-  if !impl(ghc >= 8.0)-    build-depends:    semigroups         == 0.18.*   exposed-modules:    Test.Hspec.Megaparsec   if flag(dev)     ghc-options:      -Wall -Werror   else     ghc-options:      -Wall-  if flag(dev) && impl(ghc >= 8.0)+  if flag(dev)     ghc-options:      -Wcompat                       -Wincomplete-record-updates                       -Wincomplete-uni-patterns@@ -48,16 +46,11 @@     ghc-options:      -Wall -Werror   else     ghc-options:      -Wall-  build-depends:      base               >= 4.8 && < 5.0+  build-depends:      base               >= 4.10 && < 5.0                     , hspec              >= 2.0 && < 3.0                     , hspec-expectations >= 0.8 && < 0.9                     , hspec-megaparsec                     , megaparsec         >= 7.0 && < 8.0-  if !impl(ghc >= 7.10)-    build-depends:    void               == 0.7.*-  if !impl(ghc >= 8.0)-    build-depends:    semigroups         == 0.18.*-   default-language:   Haskell2010  source-repository head
tests/Main.hs view
@@ -1,5 +1,3 @@-{-# LANGUAGE CPP #-}- module Main (main) where  import Data.Semigroup ((<>))@@ -8,10 +6,6 @@ import Test.Hspec.Megaparsec import Text.Megaparsec import Text.Megaparsec.Char--#if !MIN_VERSION_base(4,8,0)-import Control.Applicative ((<*))-#endif  type Parser = Parsec Void String