autodocodec-yaml 0.4.0.1 → 0.4.0.2
raw patch · 3 files changed
+10/−4 lines, 3 filesdep ~autodocodecPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: autodocodec
API changes (from Hackage documentation)
- Autodocodec.Yaml: readFirstYamlConfigFile :: forall a r. HasCodec a => [Path r File] -> IO (Maybe a)
+ Autodocodec.Yaml: readFirstYamlConfigFile :: HasCodec a => [Path r File] -> IO (Maybe a)
- Autodocodec.Yaml: renderColouredSchemaViaCodec :: forall a. HasCodec a => Text
+ Autodocodec.Yaml: renderColouredSchemaViaCodec :: HasCodec a => Text
- Autodocodec.Yaml: renderPlainSchemaViaCodec :: forall a. HasCodec a => Text
+ Autodocodec.Yaml: renderPlainSchemaViaCodec :: HasCodec a => Text
- Autodocodec.Yaml: schemaChunksViaCodec :: forall a. HasCodec a => [Chunk]
+ Autodocodec.Yaml: schemaChunksViaCodec :: HasCodec a => [Chunk]
- Autodocodec.Yaml.IO: readFirstYamlConfigFile :: forall a r. HasCodec a => [Path r File] -> IO (Maybe a)
+ Autodocodec.Yaml.IO: readFirstYamlConfigFile :: HasCodec a => [Path r File] -> IO (Maybe a)
- Autodocodec.Yaml.Schema: objectSchemaChunksViaCodec :: forall a. HasObjectCodec a => [Chunk]
+ Autodocodec.Yaml.Schema: objectSchemaChunksViaCodec :: HasObjectCodec a => [Chunk]
- Autodocodec.Yaml.Schema: renderColouredObjectSchemaViaCodec :: forall a. HasObjectCodec a => Text
+ Autodocodec.Yaml.Schema: renderColouredObjectSchemaViaCodec :: HasObjectCodec a => Text
- Autodocodec.Yaml.Schema: renderColouredSchemaViaCodec :: forall a. HasCodec a => Text
+ Autodocodec.Yaml.Schema: renderColouredSchemaViaCodec :: HasCodec a => Text
- Autodocodec.Yaml.Schema: renderPlainObjectSchemaViaCodec :: forall a. HasObjectCodec a => Text
+ Autodocodec.Yaml.Schema: renderPlainObjectSchemaViaCodec :: HasObjectCodec a => Text
- Autodocodec.Yaml.Schema: renderPlainSchemaViaCodec :: forall a. HasCodec a => Text
+ Autodocodec.Yaml.Schema: renderPlainSchemaViaCodec :: HasCodec a => Text
- Autodocodec.Yaml.Schema: schemaChunksViaCodec :: forall a. HasCodec a => [Chunk]
+ Autodocodec.Yaml.Schema: schemaChunksViaCodec :: HasCodec a => [Chunk]
Files
- CHANGELOG.md +6/−0
- autodocodec-yaml.cabal +3/−3
- src/Autodocodec/Yaml/Encode.hs +1/−1
CHANGELOG.md view
@@ -1,5 +1,11 @@ # Changelog +## [0.4.0.2] - 2025-06-20++### Changed++* Support for `autodocodec >=0.5`+ ## [0.4.0.1] - 2025-02-13 ### Added
autodocodec-yaml.cabal view
@@ -1,11 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.36.0.+-- This file has been generated from package.yaml by hpack version 0.36.1. -- -- see: https://github.com/sol/hpack name: autodocodec-yaml-version: 0.4.0.1+version: 0.4.0.2 synopsis: Autodocodec interpreters for yaml homepage: https://github.com/NorfairKing/autodocodec#readme bug-reports: https://github.com/NorfairKing/autodocodec/issues@@ -34,7 +34,7 @@ hs-source-dirs: src build-depends:- autodocodec >=0.4.0.0+ autodocodec >=0.5.0.0 , autodocodec-schema >=0.2.0.1 , base >=4.7 && <5 , bytestring
src/Autodocodec/Yaml/Encode.hs view
@@ -52,7 +52,7 @@ goObject :: a -> ObjectCodec a void -> [(Text, YamlBuilder)] goObject a = \case- RequiredKeyCodec k c _ -> [(k, go a c)]+ RequiredKeyCodec k c _ -> [(k, go (coerce a) c)] OptionalKeyCodec k c _ -> case (coerce a :: Maybe _) of Nothing -> [] Just b -> [k Yaml..= go b c]