Add intentional support for `SafeHaskell`
authorHerbert Valerio Riedel <hvr@gnu.org>
Mon, 5 Feb 2018 07:43:55 +0000 (08:43 +0100)
committerHerbert Valerio Riedel <hvr@gnu.org>
Mon, 5 Feb 2018 07:43:55 +0000 (08:43 +0100)
commit00dd731bc12746ac7d4341348abe733c5373cdb7
tree4bf41657270e4261fb8e4eeecd27678257b14a72
parentd7c5d3370b01e1a3d85cf085f7c8c0d2dfaac0d6
Add intentional support for `SafeHaskell`

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.

Support for GHC 7.0, GHC 7.2, and GHC 7.4.1 has been dropped,
consequently the support window starts with GHC 7.4.2.

This addresses #88
28 files changed:
.travis.yml
ChangeLog.md
parsec.cabal
src/Text/Parsec.hs
src/Text/Parsec/ByteString.hs
src/Text/Parsec/ByteString/Lazy.hs
src/Text/Parsec/Char.hs
src/Text/Parsec/Combinator.hs
src/Text/Parsec/Error.hs
src/Text/Parsec/Expr.hs
src/Text/Parsec/Language.hs
src/Text/Parsec/Perm.hs
src/Text/Parsec/Pos.hs
src/Text/Parsec/Prim.hs
src/Text/Parsec/String.hs
src/Text/Parsec/Text.hs
src/Text/Parsec/Text/Lazy.hs
src/Text/Parsec/Token.hs
src/Text/ParserCombinators/Parsec.hs
src/Text/ParserCombinators/Parsec/Char.hs
src/Text/ParserCombinators/Parsec/Combinator.hs
src/Text/ParserCombinators/Parsec/Error.hs
src/Text/ParserCombinators/Parsec/Expr.hs
src/Text/ParserCombinators/Parsec/Language.hs
src/Text/ParserCombinators/Parsec/Perm.hs
src/Text/ParserCombinators/Parsec/Pos.hs
src/Text/ParserCombinators/Parsec/Prim.hs
src/Text/ParserCombinators/Parsec/Token.hs