feed 1.2.0.0 → 1.2.0.1
raw patch · 5 files changed
+35/−29 lines, 5 filesdep ~basedep ~base-compatdep ~timePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, base-compat, time
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−0
- README.lhs +9/−9
- README.md +9/−9
- feed.cabal +11/−10
- src/Text/Atom/Feed/Export.hs +1/−1
CHANGELOG.md view
@@ -1,3 +1,8 @@+#### 1.2.0.1++* Get rid of xmlns:ns and ns:-prefixed attributes that confused some applications, thanks to Tomas Janousek.+* GHC 8.8 support+ ## 1.2.0.0 Updated `EntryContent`'s `HTMLContent` to wrap an `XML.Element` instead of `Text`. Thanks to Jake Keuhlen.
README.lhs view
@@ -62,7 +62,7 @@ > renderFeed myFeed <?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom">- <title xmlns:ns="http://www.w3.org/2005/Atom" ns:type="text">Example Website</title>+ <title type="text">Example Website</title> <id>http://example.com/atom.xml</id> <updated>2017-08-01</updated> </feed>@@ -124,29 +124,29 @@ > renderFeed feed <?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom">- <title xmlns:ns="http://www.w3.org/2005/Atom" ns:type="text">Example Website</title>+ <title type="text">Example Website</title> <id>http://example.com/atom.xml</id> <updated>2017-08-01</updated>- <link xmlns:ns="http://www.w3.org/2005/Atom" ns:href="http://example.com/"/>+ <link href="http://example.com/"/> <entry> <id>http://example.com/2</id>- <title xmlns:ns="http://www.w3.org/2005/Atom" ns:type="text">Bar.</title>+ <title type="text">Bar.</title> <updated>2000-02-02T18:30:00Z</updated> <author> <name>J. Smith</name> </author>- <content xmlns:ns="http://www.w3.org/2005/Atom" ns:type="html">Bar.</content>- <link xmlns:ns="http://www.w3.org/2005/Atom" ns:href="http://example.com/2"/>+ <content type="text">Bar.</content>+ <link href="http://example.com/2"/> </entry> <entry> <id>http://example.com/1</id>- <title xmlns:ns="http://www.w3.org/2005/Atom" ns:type="text">Foo.</title>+ <title type="text">Foo.</title> <updated>2000-01-01T18:30:00Z</updated> <author> <name>J. Smith</name> </author>- <content xmlns:ns="http://www.w3.org/2005/Atom" ns:type="html">Foo.</content>- <link xmlns:ns="http://www.w3.org/2005/Atom" ns:href="http://example.com/1"/>+ <content type="text">Foo.</content>+ <link href="http://example.com/1"/> </entry> </feed> ```
README.md view
@@ -62,7 +62,7 @@ > renderFeed myFeed <?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom">- <title xmlns:ns="http://www.w3.org/2005/Atom" ns:type="text">Example Website</title>+ <title type="text">Example Website</title> <id>http://example.com/atom.xml</id> <updated>2017-08-01</updated> </feed>@@ -124,29 +124,29 @@ > renderFeed feed <?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom">- <title xmlns:ns="http://www.w3.org/2005/Atom" ns:type="text">Example Website</title>+ <title type="text">Example Website</title> <id>http://example.com/atom.xml</id> <updated>2017-08-01</updated>- <link xmlns:ns="http://www.w3.org/2005/Atom" ns:href="http://example.com/"/>+ <link href="http://example.com/"/> <entry> <id>http://example.com/2</id>- <title xmlns:ns="http://www.w3.org/2005/Atom" ns:type="text">Bar.</title>+ <title type="text">Bar.</title> <updated>2000-02-02T18:30:00Z</updated> <author> <name>J. Smith</name> </author>- <content xmlns:ns="http://www.w3.org/2005/Atom" ns:type="html">Bar.</content>- <link xmlns:ns="http://www.w3.org/2005/Atom" ns:href="http://example.com/2"/>+ <content type="text">Bar.</content>+ <link href="http://example.com/2"/> </entry> <entry> <id>http://example.com/1</id>- <title xmlns:ns="http://www.w3.org/2005/Atom" ns:type="text">Foo.</title>+ <title type="text">Foo.</title> <updated>2000-01-01T18:30:00Z</updated> <author> <name>J. Smith</name> </author>- <content xmlns:ns="http://www.w3.org/2005/Atom" ns:type="html">Foo.</content>- <link xmlns:ns="http://www.w3.org/2005/Atom" ns:href="http://example.com/1"/>+ <content type="text">Foo.</content>+ <link href="http://example.com/1"/> </entry> </feed> ```
feed.cabal view
@@ -1,5 +1,5 @@ name: feed-version: 1.2.0.0+version: 1.2.0.1 license: BSD3 license-file: LICENSE category: Text@@ -31,7 +31,8 @@ , GHC == 8.0.2 , GHC == 8.2.2 , GHC == 8.4.4- , GHC == 8.6.4+ , GHC == 8.6.5+ , GHC == 8.8.1 data-files: tests/files/*.xml extra-source-files:@@ -75,14 +76,14 @@ Data.Text.Util Data.XML.Compat build-depends:- base >= 4 && < 4.13- , base-compat >= 0.9 && < 0.11+ base >= 4 && < 4.14+ , base-compat >= 0.9 && < 0.12 , bytestring >= 0.9 && < 0.11 , old-locale == 1.0.* , old-time >= 1 && < 1.2 , safe == 0.3.* , text < 1.3- , time < 1.9+ , time < 1.10 , time-locale-compat == 0.1.* , utf8-string < 1.1 , xml-types >= 0.3.6 && < 0.4@@ -108,15 +109,15 @@ Text.RSS.Tests Text.RSS.Utils build-depends:- base >= 4 && < 4.13- , base-compat >= 0.9 && < 0.11+ base >= 4 && < 4.14+ , base-compat >= 0.9 && < 0.12 , HUnit >= 1.2 && < 1.7 , feed , old-time >= 1 && < 1.2 , test-framework == 0.8.* , test-framework-hunit == 0.3.* , text < 1.3- , time < 1.9+ , time < 1.10 , xml-types >= 0.3.6 && < 0.4 , xml-conduit >= 1.3 && < 1.10 @@ -128,8 +129,8 @@ OverloadedStrings type: exitcode-stdio-1.0 build-depends:- base >= 4 && < 4.13- , base-compat >= 0.9 && < 0.11+ base >= 4 && < 4.14+ , base-compat >= 0.9 && < 0.12 , text , xml-types , feed
src/Text/Atom/Feed/Export.hs view
@@ -107,7 +107,7 @@ atomName nc = Name {nameLocalName = nc, nameNamespace = Just atomNS, namePrefix = atom_prefix} atomAttr :: Text -> Text -> Attr-atomAttr x y = (atomName x, [ContentText y])+atomAttr x y = (Name {nameLocalName = x, nameNamespace = Nothing, namePrefix = atom_prefix}, [ContentText y]) atomNode :: Text -> [Node] -> XML.Element atomNode x = blank_element (atomName x)