hexpat 0.19.4 → 0.19.5
raw patch · 3 files changed
+15/−5 lines, 3 filesdep ~textPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: text
API changes (from Hackage documentation)
Files
- Text/XML/Expat/SAX.hs +10/−1
- hexpat.cabal +4/−3
- test/hexpat-tests.cabal +1/−1
Text/XML/Expat/SAX.hs view
@@ -1,4 +1,4 @@-{-# LANGUAGE DeriveDataTypeable, TypeSynonymInstances #-}+{-# LANGUAGE DeriveDataTypeable, TypeSynonymInstances, CPP #-} -- hexpat, a Haskell wrapper for expat -- Copyright (C) 2008 Evan Martin <martine@danga.com>@@ -126,7 +126,16 @@ gxFromChar = T.singleton gxHead = T.head gxTail = T.tail+#if MIN_VERSION_text(0,11,0)+ gxBreakOn c = T.break (==c)+#elif MIN_VERSION_text(0,10,0)+ -- breakBy gets renamed to break between 0.10.0.0 and 0.10.0.1.+ -- There's no 'break' function that is consistent between these two+ -- versions so we work around it using other functions.+ gxBreakOn c t = (T.takeWhile (/=c) t, T.dropWhile (/=c) t)+#else gxBreakOn c = T.breakBy (==c)+#endif gxFromCStringLen cstr = TE.decodeUtf8 <$> peekByteStringLen cstr gxToByteString = TE.encodeUtf8
hexpat.cabal view
@@ -1,6 +1,6 @@ Cabal-Version: >= 1.6 Name: hexpat-Version: 0.19.4+Version: 0.19.5 Synopsis: XML parser/formatter based on expat Description: This package provides a general purpose Haskell XML library using Expat to@@ -49,7 +49,8 @@ 0.19.1 fix a memory leak introduced in 0.19, delegate parsing to bound thread if unbound (see note above); 0.19.2 include expat source code so \'cabal install\' just works on Linux, Mac and Windows (thanks Jacob Stanley); 0.19.3 fix misconfiguration of expat- which broke entity parsing; 0.19.4 bump version constraint for text.+ which broke entity parsing; 0.19.4 bump version constraint for text; 0.19.5 bump text+ to < 0.12 and fix text-0.10.0.1 breakage. Category: XML License: BSD3 License-File: LICENSE@@ -116,7 +117,7 @@ base >= 3 && < 5, bytestring, transformers,- text >= 0.5 && < 0.11,+ text >= 0.5 && < 0.12, utf8-string == 0.3.*, deepseq == 1.1.*, containers,
test/hexpat-tests.cabal view
@@ -9,7 +9,7 @@ build-depends: HUnit < 1.3,- QuickCheck >= 2.1.0.3 && < 2.2,+ QuickCheck == 2.3.*, base >= 3 && < 5, bytestring, containers,