packages feed

parsec 3.1.12.0 → 3.1.13.0

raw patch · 27 files changed

+87/−16 lines, 27 filesdep ~basedep ~bytestringdep ~mtl

Dependency ranges changed: base, bytestring, mtl, semigroups, text

Files

ChangeLog.md view
@@ -1,4 +1,28 @@+### 3.1.13.0++- Add official support for [`SafeHaskell`](http://downloads.haskell.org/~ghc/latest/docs/html/users_guide/safe_haskell.html)++    **NOTE**: This is the first version whose `SafeHaskell` properties+    have become an intentional part of the API contract; previous+    versions were merely accidentally safe-inferred (or not depending+    on various factors; in other words, this was a fragile+    property). If you rely on `SafeHaskell` to consider module imports+    from `parsec` *safe*, this is the first version of `parsec` which+    actually guarantees a well-defined state; you can declare this+    requirement by either specifying++        build-depends: parsec >= 3.1.13.0 && < 3.2++    or, starting with `cabal-version:2.0`, via++        build-depends: parsec ^>= 3.1.13.0++- Drop support for GHC 7.0, GHC 7.2, and GHC 7.4.1; support window+  starts with GHC 7.4.2.+ ### 3.1.12.0++- Support limited to GHC 7.0 & GHC 7.2 only  - Add `MonadFail` instance for `ParsecT` - Add `Semigroup`/`Monoid` instances for `ParsecT` (#80,#82)
parsec.cabal view
@@ -1,6 +1,6 @@-cabal-version:  >= 1.10+cabal-version:  1.12 name:           parsec-version:        3.1.12.0+version:        3.1.13.0  synopsis:       Monadic parser combinators description:    Parsec is designed from scratch as an industrial-strength parser@@ -21,18 +21,18 @@ license-file:   LICENSE author:         Daan Leijen <daan@microsoft.com>, Paolo Martini <paolo@nemail.it>, Antoine Latter <aslatter@gmail.com> maintainer:     Herbert Valerio Riedel <hvr@gnu.org>-homepage:       https://github.com/haskell/parsec-bug-reports:    https://github.com/haskell/parsec/issues+homepage:       https://github.com/hvr/parsec+bug-reports:    https://github.com/hvr/parsec/issues category:       Parsing  build-type:     Simple-tested-with:    GHC ==8.2.2 || ==8.0.2 || ==7.10.3 || ==7.8.4 || ==7.6.3 || ==7.4.2 || ==7.2.2 || ==7.0.4+tested-with:    GHC ==8.4.1 || ==8.2.2 || ==8.0.2 || ==7.10.3 || ==7.8.4 || ==7.6.3 || ==7.4.2  extra-source-files: ChangeLog.md, README.md  source-repository head     type: git-    location: https://github.com/haskell/parsec+    location: https://github.com/hvr/parsec  library     hs-source-dirs: src@@ -64,10 +64,10 @@         Text.ParserCombinators.Parsec.Token      build-depends:-        base       >= 4.3   && < 5,-        mtl        >= 1.1   && < 2.3,-        bytestring >= 0.9.1 && < 0.11,-        text       >= 0.2   && < 1.3+        base       >= 4.5.1   && < 4.12,+        mtl        >= 1.1.1   && < 2.3,+        bytestring >= 0.9.2.1 && < 0.11,+        text       >= 0.11.3  && < 1.3      default-language: Haskell2010     other-extensions:@@ -80,15 +80,19 @@         MultiParamTypeClasses         PolymorphicComponents         StandaloneDeriving+        Safe+        Trustworthy         UndecidableInstances      ghc-options: -Wall     if impl(ghc >= 8.0)-        ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances+        ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -Wno-trustworthy-safe     else         -- provide/emulate `Control.Monad.Fail` and `Semigroup` API for pre-GHC8         build-depends: fail == 4.9.*, semigroups == 0.18.* +        if impl(ghc >= 7.10)+            ghc-options: -fno-warn-trustworthy-safe  test-suite parsec.     type: exitcode-stdio-1.0
src/Text/Parsec.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE Safe #-}+ {-| Module      :  Text.Parsec Copyright   :  (c) Daan Leijen 1999-2001, (c) Paolo Martini 2007
src/Text/Parsec/ByteString.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE Safe #-}+ ----------------------------------------------------------------------------- -- | -- Module      :  Text.Parsec.ByteString
src/Text/Parsec/ByteString/Lazy.hs view
@@ -1,9 +1,11 @@+{-# LANGUAGE Safe #-}+ ----------------------------------------------------------------------------- -- | -- Module      :  Text.Parsec.ByteString.Lazy -- Copyright   :  (c) Paolo Martini 2007 -- License     :  BSD-style (see the LICENSE file)--- +-- -- Maintainer  :  derek.a.elkins@gmail.com -- Stability   :  provisional -- Portability :  portable
src/Text/Parsec/Char.hs view
@@ -1,4 +1,4 @@-{-# LANGUAGE CPP, FlexibleContexts #-}+{-# LANGUAGE CPP, FlexibleContexts, Safe #-}  ----------------------------------------------------------------------------- -- |
src/Text/Parsec/Combinator.hs view
@@ -1,3 +1,6 @@+-- due to Debug.Trace+{-# LANGUAGE Trustworthy #-}+ ----------------------------------------------------------------------------- -- | -- Module      :  Text.Parsec.Combinator
src/Text/Parsec/Error.hs view
@@ -1,4 +1,5 @@ {-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE Safe #-}  ----------------------------------------------------------------------------- -- |
src/Text/Parsec/Expr.hs view
@@ -1,5 +1,6 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE Safe #-}  ----------------------------------------------------------------------------- -- |
src/Text/Parsec/Language.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE Safe #-}+ ----------------------------------------------------------------------------- -- | -- Module      :  Text.Parsec.Language
src/Text/Parsec/Perm.hs view
@@ -3,6 +3,7 @@ {-# LANGUAGE ExistentialQuantification #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE StandaloneDeriving #-}+{-# LANGUAGE Safe #-}  ----------------------------------------------------------------------------- -- |
src/Text/Parsec/Pos.hs view
@@ -1,4 +1,5 @@ {-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE Safe #-}  ----------------------------------------------------------------------------- -- |
src/Text/Parsec/Prim.hs view
@@ -6,6 +6,7 @@ {-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE PolymorphicComponents #-}+{-# LANGUAGE Safe #-} {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE UndecidableInstances #-} 
src/Text/Parsec/String.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE Safe #-}+ ----------------------------------------------------------------------------- -- | -- Module      :  Text.Parsec.String
src/Text/Parsec/Text.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE Safe #-}+ ----------------------------------------------------------------------------- -- | -- Module      :  Text.Parsec.String
src/Text/Parsec/Text/Lazy.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE Safe #-}+ ----------------------------------------------------------------------------- -- | -- Module      :  Text.Parsec.String
src/Text/Parsec/Token.hs view
@@ -2,6 +2,7 @@ {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE PolymorphicComponents #-}+{-# LANGUAGE Safe #-}  ----------------------------------------------------------------------------- -- |
src/Text/ParserCombinators/Parsec.hs view
@@ -1,15 +1,17 @@+{-# LANGUAGE Safe #-}+ ----------------------------------------------------------------------------- -- | -- Module      :  Text.ParserCombinators.Parsec -- Copyright   :  (c) Paolo Martini 2007 -- License     :  BSD-style (see the LICENSE file)--- +-- -- Maintainer  :  derek.a.elkins@gmail.com -- Stability   :  provisional -- Portability :  portable--- +-- -- Parsec compatibility module--- +-- -----------------------------------------------------------------------------  module Text.ParserCombinators.Parsec
src/Text/ParserCombinators/Parsec/Char.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE Safe #-}+ ----------------------------------------------------------------------------- -- | -- Module      :  Text.ParserCombinators.Parsec.Char
src/Text/ParserCombinators/Parsec/Combinator.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE Safe #-}+ ----------------------------------------------------------------------------- -- | -- Module      :  Text.ParserCombinators.Parsec.Combinator
src/Text/ParserCombinators/Parsec/Error.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE Safe #-}+ ----------------------------------------------------------------------------- -- | -- Module      :  Text.ParserCombinators.Parsec.Error
src/Text/ParserCombinators/Parsec/Expr.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE Safe #-}+ ----------------------------------------------------------------------------- -- | -- Module      :  Text.ParserCombinators.Parsec.Expr
src/Text/ParserCombinators/Parsec/Language.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE Safe #-}+ ----------------------------------------------------------------------------- -- | -- Module      :  Text.ParserCombinators.Parsec.Language
src/Text/ParserCombinators/Parsec/Perm.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE Safe #-}+ ----------------------------------------------------------------------------- -- | -- Module      :  Text.ParserCombinators.Parsec.Perm
src/Text/ParserCombinators/Parsec/Pos.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE Safe #-}+ ----------------------------------------------------------------------------- -- | -- Module      :  Text.ParserCombinators.Parsec.Pos
src/Text/ParserCombinators/Parsec/Prim.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE Safe #-}+ ----------------------------------------------------------------------------- -- | -- Module      :  Text.ParserCombinators.Parsec.Prim
src/Text/ParserCombinators/Parsec/Token.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE Safe #-}+ ----------------------------------------------------------------------------- -- | -- Module      :  Text.ParserCombinators.Parsec.Token