rss-conduit 0.2.0.1 → 0.2.0.2
raw patch · 3 files changed
+19/−4 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_0CloudProtocol
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_0Day
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_0Hour
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_0RssCategory
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_0RssCloud
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_0RssDocument
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_0RssEnclosure
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_0RssGuid
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_0RssImage
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_0RssItem
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_0RssSource
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_0RssTextInput
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_1CloudProtocol
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_1Day
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_1RssGuid
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_2CloudProtocol
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_2Day
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_3Day
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_4Day
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_5Day
- Text.RSS.Types: instance GHC.Generics.Constructor Text.RSS.Types.C1_6Day
- Text.RSS.Types: instance GHC.Generics.Datatype Text.RSS.Types.D1CloudProtocol
- Text.RSS.Types: instance GHC.Generics.Datatype Text.RSS.Types.D1Day
- Text.RSS.Types: instance GHC.Generics.Datatype Text.RSS.Types.D1Hour
- Text.RSS.Types: instance GHC.Generics.Datatype Text.RSS.Types.D1RssCategory
- Text.RSS.Types: instance GHC.Generics.Datatype Text.RSS.Types.D1RssCloud
- Text.RSS.Types: instance GHC.Generics.Datatype Text.RSS.Types.D1RssDocument
- Text.RSS.Types: instance GHC.Generics.Datatype Text.RSS.Types.D1RssEnclosure
- Text.RSS.Types: instance GHC.Generics.Datatype Text.RSS.Types.D1RssGuid
- Text.RSS.Types: instance GHC.Generics.Datatype Text.RSS.Types.D1RssImage
- Text.RSS.Types: instance GHC.Generics.Datatype Text.RSS.Types.D1RssItem
- Text.RSS.Types: instance GHC.Generics.Datatype Text.RSS.Types.D1RssSource
- Text.RSS.Types: instance GHC.Generics.Datatype Text.RSS.Types.D1RssTextInput
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_0RssCategory
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_0RssCloud
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_0RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_0RssEnclosure
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_0RssImage
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_0RssItem
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_0RssSource
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_0RssTextInput
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_10RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_11RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_12RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_13RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_14RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_15RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_16RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_17RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_18RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_19RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_1RssCategory
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_1RssCloud
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_1RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_1RssEnclosure
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_1RssImage
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_1RssItem
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_1RssSource
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_1RssTextInput
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_20RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_2RssCloud
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_2RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_2RssEnclosure
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_2RssImage
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_2RssItem
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_2RssTextInput
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_3RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_3RssImage
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_3RssItem
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_3RssTextInput
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_4RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_4RssImage
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_4RssItem
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_5RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_5RssImage
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_5RssItem
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_6RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_6RssItem
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_7RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_7RssItem
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_8RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_8RssItem
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_9RssDocument
- Text.RSS.Types: instance GHC.Generics.Selector Text.RSS.Types.S1_0_9RssItem
+ Text.RSS.Types: instance GHC.Classes.Ord Text.RSS.Types.CloudProtocol
+ Text.RSS.Types: instance GHC.Classes.Ord Text.RSS.Types.RssCategory
+ Text.RSS.Types: instance GHC.Classes.Ord Text.RSS.Types.RssCloud
+ Text.RSS.Types: instance GHC.Classes.Ord Text.RSS.Types.RssDocument
+ Text.RSS.Types: instance GHC.Classes.Ord Text.RSS.Types.RssEnclosure
+ Text.RSS.Types: instance GHC.Classes.Ord Text.RSS.Types.RssGuid
+ Text.RSS.Types: instance GHC.Classes.Ord Text.RSS.Types.RssImage
+ Text.RSS.Types: instance GHC.Classes.Ord Text.RSS.Types.RssItem
+ Text.RSS.Types: instance GHC.Classes.Ord Text.RSS.Types.RssSource
+ Text.RSS.Types: instance GHC.Classes.Ord Text.RSS.Types.RssTextInput
+ Text.RSS.Types: instance GHC.Classes.Ord Text.RSS.Types.RssURI
Files
- Text/RSS/Conduit/Parse.hs +1/−1
- Text/RSS/Types.hs +17/−2
- rss-conduit.cabal +1/−1
Text/RSS/Conduit/Parse.hs view
@@ -246,7 +246,7 @@ flip foldM p $ RssDocument version <$> handlesM _ChannelTitle (lastRequired "Missing <title> element.") <*> handlesM _ChannelLink (lastRequired "Missing <link> element.")- <*> handlesM _ChannelDescription (lastRequired "Missing <description> element.")+ <*> generalize (handles _ChannelDescription $ lastDef "") -- Lenient <*> generalize (handles _ChannelItem list) <*> generalize (handles _ChannelLanguage $ lastDef "") <*> generalize (handles _ChannelCopyright $ lastDef "")
Text/RSS/Types.hs view
@@ -78,6 +78,13 @@ RssURI a@URI{} == RssURI b@URI{} = a == b RssURI a@RelativeRef{} == RssURI b@RelativeRef{} = a == b _ == _ = False++instance Ord RssURI where+ RssURI a@URI{} `compare` RssURI b@URI{} = a `compare` b+ RssURI a@RelativeRef{} `compare` RssURI b@RelativeRef{} = a `compare` b+ RssURI a@RelativeRef{} `compare` RssURI b@URI{} = LT+ _ `compare` _ = GT+ instance Show RssURI where show (RssURI a@URI{}) = show a show (RssURI a@RelativeRef{}) = show a@@ -94,6 +101,7 @@ deriving instance Eq RssCategory deriving instance Generic RssCategory+deriving instance Ord RssCategory deriving instance Show RssCategory @@ -106,6 +114,7 @@ deriving instance Eq RssEnclosure deriving instance Generic RssEnclosure+deriving instance Ord RssEnclosure deriving instance Show RssEnclosure @@ -117,12 +126,13 @@ deriving instance Eq RssSource deriving instance Generic RssSource+deriving instance Ord RssSource deriving instance Show RssSource -- | The @\<guid\>@ element. data RssGuid = GuidText Text | GuidUri RssURI- deriving(Eq, Generic, Show)+ deriving(Eq, Generic, Ord, Show) -- | The @\<item\>@ element.@@ -141,6 +151,7 @@ deriving instance Eq RssItem deriving instance Generic RssItem+deriving instance Ord RssItem deriving instance Show RssItem @@ -154,10 +165,11 @@ deriving instance Eq RssTextInput deriving instance Generic RssTextInput+deriving instance Ord RssTextInput deriving instance Show RssTextInput data CloudProtocol = ProtocolXmlRpc | ProtocolSoap | ProtocolHttpPost- deriving(Eq, Generic, Show)+ deriving(Eq, Generic, Ord, Show) -- | The @\<cloud\>@ element. data RssCloud = RssCloud@@ -168,6 +180,7 @@ deriving instance Eq RssCloud deriving instance Generic RssCloud+deriving instance Ord RssCloud deriving instance Show RssCloud -- | The @\<image\>@ element.@@ -182,6 +195,7 @@ deriving instance Eq RssImage deriving instance Generic RssImage+deriving instance Ord RssImage deriving instance Show RssImage @@ -228,4 +242,5 @@ deriving instance Eq RssDocument deriving instance Generic RssDocument+deriving instance Ord RssDocument deriving instance Show RssDocument
rss-conduit.cabal view
@@ -1,5 +1,5 @@ name: rss-conduit-version: 0.2.0.1+version: 0.2.0.2 synopsis: Streaming parser/renderer for the RSS 2.0 standard. description: Cf README file. license: OtherLicense