packages feed

autodocodec-nix 0.0.1.2 → 0.0.1.3

raw patch · 3 files changed

+13/−5 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,6 +1,14 @@ # Changelog -## [0.0.1.2] - 2024-08-20+## [0.0.1.3] - 2024-08-22++### Changed++* Made required object codecs produce a required type.++## [0.0.1.2] - 2024-08-21++### Changed  * Fixed the nix type that corresponds to `null`. * Fixed that some nix types were not being simplified enough.
autodocodec-nix.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           autodocodec-nix-version:        0.0.1.2+version:        0.0.1.3 synopsis:       Autodocodec interpreters for nix homepage:       https://github.com/NorfairKing/autodocodec#readme bug-reports:    https://github.com/NorfairKing/autodocodec/issues
src/Autodocodec/Nix.hs view
@@ -132,10 +132,10 @@       RequiredKeyCodec key o mDesc ->         M.singleton key $           Option-            { optionType = OptionTypeNullOr <$> valueCodecNixOptionType o,+            { optionType = valueCodecNixOptionType o,               optionDescription = mDesc,-              optionDefault = Just JSON.Null -- [ref:NixOptionNullable]-            } -- TODO use the docs+              optionDefault = Nothing -- [ref:NixOptionNullable]+            }       OptionalKeyCodec key o mDesc ->         M.singleton key $           Option