rattletrap 10.0.0 → 10.0.6
raw patch · 3 files changed
+10/−4 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README.markdown +4/−2
- rattletrap.cabal +1/−1
- src/lib/Rattletrap/Utility/Json.hs +5/−1
README.markdown view
@@ -52,13 +52,15 @@ ``` ```-rattletrap version 9.0.1+rattletrap version 10.0.0 -c --compact minify JSON output -f --fast only encode or decode the header -h --help show the help -i FILE|URL --input=FILE|URL input file or URL -m MODE --mode=MODE decode or encode -o FILE --output=FILE output file+ --schema output the schema+ --skip-crc skip the CRC -v --version show the version ``` @@ -125,7 +127,7 @@ [Rattletrap]: https://github.com/tfausak/rattletrap [Version badge]: https://img.shields.io/hackage/v/rattletrap.svg?logo=haskell&label=version&color=brightgreen [version]: https://hackage.haskell.org/package/rattletrap-[Build badge]: https://github.com/tfausak/rattletrap/workflows/CI/badge.svg+[Build badge]: https://github.com/tfausak/rattletrap/workflows/ci/badge.svg [build]: https://github.com/tfausak/rattletrap/actions [Rocket League]: https://www.rocketleague.com [1.92]: https://www.rocketleague.com/news/patch-notes-v1-92/
rattletrap.cabal view
@@ -1,7 +1,7 @@ cabal-version: 2.0 name: rattletrap-version: 10.0.0+version: 10.0.6 synopsis: Parse and generate Rocket League replays. description: Rattletrap parses and generates Rocket League replays.
src/lib/Rattletrap/Utility/Json.hs view
@@ -16,7 +16,11 @@ :: Aeson.FromJSON value => Aeson.Object -> String -> Aeson.Parser value required object key = object Aeson..: Text.pack key -optional :: Aeson.FromJSON value => Aeson.Object -> String -> Aeson.Parser (Maybe value)+optional+ :: Aeson.FromJSON value+ => Aeson.Object+ -> String+ -> Aeson.Parser (Maybe value) optional object key = object Aeson..:? Text.pack key pair :: (Aeson.ToJSON value, Aeson.KeyValue pair) => String -> value -> pair