autodocodec 0.1.0.0 → 0.1.0.1
raw patch · 3 files changed
+10/−3 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Autodocodec: parseAlternative :: Codec context input output -> Codec context input output -> Codec context input output
+ Autodocodec: parseAlternative :: Codec context input output -> Codec context input' output -> Codec context input output
- Autodocodec.Codec: parseAlternative :: Codec context input output -> Codec context input output -> Codec context input output
+ Autodocodec.Codec: parseAlternative :: Codec context input output -> Codec context input' output -> Codec context input output
Files
- CHANGELOG.md +7/−0
- autodocodec.cabal +1/−1
- src/Autodocodec/Codec.hs +2/−2
CHANGELOG.md view
@@ -1,8 +1,15 @@ # Changelog +## [0.1.0.1] - 2022-05-03++### Changed++* Generalised the type of `parseAlternative`.+ ## [0.1.0.0] - 2022-05-03 ### Changed+ * Generalise type of `matchChoiceCodec` to allow for two different input types. * Add disjoint versions of `matchChoiceCodec` and `matchChoicesCodec`. * Functions `enumCodec`, `stringConstCodec`, and `shownBoundedEnumCodec` now produce disjoint codecs.
autodocodec.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: autodocodec-version: 0.1.0.0+version: 0.1.0.1 synopsis: Self-documenting encoder and decoder homepage: https://github.com/NorfairKing/autodocodec#readme bug-reports: https://github.com/NorfairKing/autodocodec/issues
src/Autodocodec/Codec.hs view
@@ -1514,9 +1514,9 @@ -- | Main codec, for parsing and rendering Codec context input output -> -- | Alternative codecs just for parsing- Codec context input output ->+ Codec context input' output -> Codec context input output-parseAlternative c cAlt = parseAlternatives c [cAlt]+parseAlternative c cAlt = matchChoiceCodec c cAlt Left -- | A codec for an enum that can be written each with their own codec. --