packages feed

arxiv-client 0.1.0.0 → 0.1.0.1

raw patch · 2 files changed

+3/−2 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Arxiv.Entry: instance GHC.Generics.Generic Arxiv.Entry.ArxivEntry
- Arxiv.Entry: instance GHC.Show.Show Arxiv.Entry.ArxivEntry
- Arxiv.Query: instance GHC.Show.Show Arxiv.Query.ArxivQuery
- Arxiv.Query: instance GHC.Show.Show Arxiv.Query.SortBy
- Arxiv.Query: instance GHC.Show.Show Arxiv.Query.SortOrder
- Arxiv.Query: instance GHC.Show.Show Arxiv.Query.Term
- Arxiv.Query.Algebraic: instance GHC.Read.Read Arxiv.Query.Algebraic.QueryTerm
- Arxiv.Query.Algebraic: instance GHC.Read.Read a => GHC.Read.Read (Arxiv.Query.Algebraic.IsHasAnyAll a)
- Arxiv.Query.Algebraic: instance GHC.Show.Show Arxiv.Query.Algebraic.QueryTerm
- Arxiv.Query.Algebraic: instance GHC.Show.Show a => GHC.Show.Show (Arxiv.Query.Algebraic.IsHasAnyAll a)
- Arxiv.Query.Parser: instance GHC.Show.Show a => GHC.Show.Show (Arxiv.Query.Parser.AndOrBracket a)
+ Arxiv.Entry: instance GHC.Internal.Generics.Generic Arxiv.Entry.ArxivEntry
+ Arxiv.Entry: instance GHC.Internal.Show.Show Arxiv.Entry.ArxivEntry
+ Arxiv.Query: instance GHC.Internal.Show.Show Arxiv.Query.ArxivQuery
+ Arxiv.Query: instance GHC.Internal.Show.Show Arxiv.Query.SortBy
+ Arxiv.Query: instance GHC.Internal.Show.Show Arxiv.Query.SortOrder
+ Arxiv.Query: instance GHC.Internal.Show.Show Arxiv.Query.Term
+ Arxiv.Query.Algebraic: instance GHC.Internal.Read.Read Arxiv.Query.Algebraic.QueryTerm
+ Arxiv.Query.Algebraic: instance GHC.Internal.Read.Read a => GHC.Internal.Read.Read (Arxiv.Query.Algebraic.IsHasAnyAll a)
+ Arxiv.Query.Algebraic: instance GHC.Internal.Show.Show Arxiv.Query.Algebraic.QueryTerm
+ Arxiv.Query.Algebraic: instance GHC.Internal.Show.Show a => GHC.Internal.Show.Show (Arxiv.Query.Algebraic.IsHasAnyAll a)
+ Arxiv.Query.Parser: instance GHC.Internal.Show.Show a => GHC.Internal.Show.Show (Arxiv.Query.Parser.AndOrBracket a)

Files

arxiv-client.cabal view
@@ -1,6 +1,6 @@ cabal-version:      3.0 name:               arxiv-client-version:            0.1.0.0+version:            0.1.0.1 synopsis:           Tiny client for the arXiv Atom API with a simple query DSL description:        This library provides a tiny client for the arXiv Atom API, allowing users to perform searches, retrieve metadata and download academic papers hosted on arXiv.org. It features a simple domain-specific language for constructing queries, making it easy to filter and sort results based on various criteria such as author, title, abstract, categories, and submission dates. license:            BSD-3-Clause
src/Arxiv/Query.hs view
@@ -216,7 +216,8 @@  quoteIfNeeded :: Text -> Text quoteIfNeeded t-  | T.any (\c -> c == ' ' || c == ':' || c == '(' || c == ')' || c == '"') t+  | "\"" `T.isPrefixOf` t && "\"" `T.isSuffixOf` t = t+  | T.any (\c -> c == ' ' || c == ':' || c == '(' || c == ')') t       = "\"" <> t <> "\""   | otherwise = t