citeproc 0.3.0.7 → 0.3.0.8
raw patch · 3 files changed
+9/−7 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +6/−0
- citeproc.cabal +1/−1
- src/Citeproc/Types.hs +2/−6
CHANGELOG.md view
@@ -1,5 +1,11 @@ # citeproc changelog +## 0.3.0.8++ * In parsing abbreviations JSON, ignore top-level fields+ besides "default" (#57), e.g. "info" which is used in Zotero's+ default abbreviations file.+ ## 0.3.0.7 * Remove check for ASCII in case transform code.
citeproc.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.2 name: citeproc-version: 0.3.0.7+version: 0.3.0.8 synopsis: Generates citations and bibliography from CSL styles. description: citeproc parses CSL style files and uses them to generate a list of formatted citations and bibliography
src/Citeproc/Types.hs view
@@ -1608,12 +1608,8 @@ deriving (Show, Eq, Ord) instance FromJSON Abbreviations where- parseJSON (Object v) =- Abbreviations <$>- (parseJSON (Object v) >>= maybe- (fail "abbreviations lacks a default key")- return . M.lookup ("default" :: Text))- parseJSON _ = fail "Could not read abbreviations"+ parseJSON = withObject "Abbreviations" $ \v ->+ Abbreviations <$> v .: "default" instance ToJSON Abbreviations where toJSON (Abbreviations m) =